Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 108.3 kB / 17.74 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001146, allocations: 187 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.182/0.182, allocations: 38.04 MB / 330.6 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.89 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3581, allocations: 58.05 MB / 0.5048 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006174/0.3643, allocations: 5.239 MB / 0.5099 GB, free: 4.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00539/0.3697, allocations: 3.96 MB / 0.5137 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005145/0.3702, allocations: 20.03 kB / 0.5138 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009715/0.38, allocations: 4.792 MB / 0.5184 GB, free: 88 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001064/0.3811, allocations: 318.4 kB / 0.5187 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006838/0.3818, allocations: 217.9 kB / 0.519 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002545/0.3843, allocations: 1.551 MB / 0.5205 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008893/0.3852, allocations: 0.5933 MB / 0.521 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005442/0.3858, allocations: 373.8 kB / 0.5214 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005978/0.3864, allocations: 411.1 kB / 0.5218 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.508e-05/0.3865, allocations: 54.84 kB / 0.5218 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.3867, allocations: 63.56 kB / 0.5219 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002993/0.387, allocations: 258.7 kB / 0.5222 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003526/0.3874, allocations: 321.7 kB / 0.5225 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001067/0.3884, allocations: 0.8096 MB / 0.5233 GB, free: 14.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3885, allocations: 1.188 kB / 0.5233 GB, free: 14.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3885, allocations: 0 / 0.5233 GB, free: 14.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.3885, allocations: 0 / 0.5233 GB, free: 14.02 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001714/0.3902, allocations: 0.8723 MB / 0.5241 GB, free: 13.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3903, allocations: 13.92 kB / 0.5241 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003035/0.3906, allocations: 68.19 kB / 0.5242 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.3916, allocations: 0.5697 MB / 0.5247 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.94e-05/0.3916, allocations: 31.42 kB / 0.5248 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.972e-05/0.3917, allocations: 46.52 kB / 0.5248 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.3927, allocations: 0.6296 MB / 0.5254 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.3928, allocations: 6.75 kB / 0.5254 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.915e-05/0.3928, allocations: 15.97 kB / 0.5255 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001315/0.393, allocations: 48 kB / 0.5255 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007766/0.3938, allocations: 470.4 kB / 0.5259 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003193/0.397, allocations: 2.5 MB / 0.5284 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004352/0.3974, allocations: 282.3 kB / 0.5287 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.3976, allocations: 145.7 kB / 0.5288 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.3977, allocations: 3.688 kB / 0.5288 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/0.3977, allocations: 40.62 kB / 0.5288 GB, free: 10.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 4.749e-06/0.3977, allocations: 1.062 kB / 0.5288 GB, free: 10.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002925/0.4007, allocations: 1.547 MB / 0.5304 GB, free: 8.945 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.4007, allocations: 83.91 kB / 0.5304 GB, free: 8.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004798/0.4012, allocations: 410.5 kB / 0.5308 GB, free: 8.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.4013, allocations: 35.05 kB / 0.5309 GB, free: 8.555 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.4015, allocations: 299.8 kB / 0.5311 GB, free: 8.289 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.4016, allocations: 112.4 kB / 0.5312 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.4017, allocations: 81.59 kB / 0.5313 GB, free: 8.137 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.4019, allocations: 361.8 kB / 0.5317 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.4021, allocations: 131 kB / 0.5318 GB, free: 7.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003167/0.4025, allocations: 285.6 kB / 0.5321 GB, free: 7.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005806/0.403, allocations: 444.6 kB / 0.5325 GB, free: 7.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.403, allocations: 1.188 kB / 0.5325 GB, free: 7.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001117/0.4042, allocations: 0.6835 MB / 0.5332 GB, free: 6.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.4042, allocations: 5.781 kB / 0.5332 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.4042, allocations: 5.062 kB / 0.5332 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004537/0.4047, allocations: 155.7 kB / 0.5333 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003226/0.405, allocations: 77.23 kB / 0.5334 GB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003471/0.4085, allocations: 3.668 MB / 0.537 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.4089, allocations: 18.91 kB / 0.537 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.4089, allocations: 19.55 kB / 0.537 GB, free: 3.152 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003693/0.4093, allocations: 235.5 kB / 0.5372 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.189e-05/0.4094, allocations: 43.42 kB / 0.5373 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.4104, allocations: 0.5725 MB / 0.5378 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.4104, allocations: 7.609 kB / 0.5378 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007389/0.4112, allocations: 487.4 kB / 0.5383 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4112, allocations: 1.188 kB / 0.5383 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001645/0.4129, allocations: 1 MB / 0.5393 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.4129, allocations: 1.062 kB / 0.5393 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/0.4131, allocations: 38.03 kB / 0.5393 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002736/0.4134, allocations: 98.44 kB / 0.5394 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.4134, allocations: 7.25 kB / 0.5394 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002049/0.4155, allocations: 2.027 MB / 0.5414 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4155, allocations: 2.25 kB / 0.5414 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009978/0.4165, allocations: 0.6466 MB / 0.542 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.4167, allocations: 135.2 kB / 0.5422 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.732e-05/0.4167, allocations: 15.23 kB / 0.5422 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.417, allocations: 11.41 kB / 0.5422 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.577e-05/0.417, allocations: 22.22 kB / 0.5422 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.417, allocations: 10.91 kB / 0.5422 GB, free: 14.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003771/0.4174, allocations: 301.9 kB / 0.5425 GB, free: 14.76 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4174, allocations: 0 / 0.5425 GB, free: 14.76 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000614/0.4181, allocations: 119 kB / 0.5426 GB, free: 14.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001356/0.4182, allocations: 114.4 kB / 0.5427 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.4192, allocations: 0.6058 MB / 0.5433 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4192, allocations: 5.5 kB / 0.5433 GB, free: 14.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004485/0.4197, allocations: 297.7 kB / 0.5436 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000717/0.4204, allocations: 121.2 kB / 0.5437 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.4224, allocations: 1.165 MB / 0.5449 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.423, allocations: 0.924 MB / 0.5458 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.4231, allocations: 38.27 kB / 0.5458 GB, free: 12.34 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4231, allocations: 0 / 0.5458 GB, free: 12.34 MB / 414.1 MB Notification: Performance of Templates: time 0.01321/0.4364, allocations: 9.993 MB / 0.5556 GB, free: 3.242 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches