Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 116.6 kB / 17.06 MB, free: 5.996 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.001968/0.001968, allocations: 198.8 kB / 18 MB, free: 5.074 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.49/1.49, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1903/0.1903, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 59.91 kB / 458.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4653/0.4667, allocations: 58.06 MB / 0.5041 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007151/0.4739, allocations: 5.382 MB / 0.5094 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006096/0.4801, allocations: 4.159 MB / 0.5134 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005378/0.4807, allocations: 19.12 kB / 0.5134 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01188/0.4925, allocations: 4.852 MB / 0.5182 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001369/0.4939, allocations: 347.3 kB / 0.5185 GB, free: 15.58 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009021/0.4949, allocations: 248.9 kB / 0.5188 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002689/0.4976, allocations: 1.563 MB / 0.5203 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008702/0.4984, allocations: 391.4 kB / 0.5206 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009385/0.4994, allocations: 379.3 kB / 0.521 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.5006, allocations: 441.4 kB / 0.5214 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001994/0.5008, allocations: 45.41 kB / 0.5215 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005246/0.5013, allocations: 117 kB / 0.5216 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005686/0.5019, allocations: 279.2 kB / 0.5219 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000631/0.5025, allocations: 324.2 kB / 0.5222 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001263/0.5038, allocations: 0.7429 MB / 0.5229 GB, free: 13.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.5038, allocations: 4 kB / 0.5229 GB, free: 13.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5038, allocations: 1.25 kB / 0.5229 GB, free: 13.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.163e-05/0.5039, allocations: 0 / 0.5229 GB, free: 13.84 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.002251/0.5061, allocations: 0.9212 MB / 0.5238 GB, free: 13.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.5062, allocations: 12.55 kB / 0.5238 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005476/0.5067, allocations: 91.98 kB / 0.5239 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.508, allocations: 0.5527 MB / 0.5244 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.299e-05/0.5081, allocations: 35.66 kB / 0.5245 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.5082, allocations: 52.11 kB / 0.5245 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.5095, allocations: 0.6478 MB / 0.5251 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.5095, allocations: 2.25 kB / 0.5252 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.554e-05/0.5096, allocations: 20.3 kB / 0.5252 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001687/0.5098, allocations: 48.62 kB / 0.5252 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000971/0.5108, allocations: 498.1 kB / 0.5257 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003806/0.5146, allocations: 2.53 MB / 0.5282 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000561/0.5152, allocations: 317.3 kB / 0.5285 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000292/0.5155, allocations: 179.7 kB / 0.5286 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.5155, allocations: 4.062 kB / 0.5286 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/0.5156, allocations: 44.42 kB / 0.5287 GB, free: 9.914 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.835e-06/0.5156, allocations: 0 / 0.5287 GB, free: 9.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003164/0.5187, allocations: 1.623 MB / 0.5303 GB, free: 8.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.5188, allocations: 114.2 kB / 0.5304 GB, free: 8.527 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005264/0.5194, allocations: 431.3 kB / 0.5308 GB, free: 8.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.5194, allocations: 30.8 kB / 0.5308 GB, free: 8.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002234/0.5196, allocations: 305.1 kB / 0.5311 GB, free: 7.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.5197, allocations: 122.5 kB / 0.5312 GB, free: 7.852 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.5199, allocations: 88.66 kB / 0.5313 GB, free: 7.793 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.5201, allocations: 364.2 kB / 0.5317 GB, free: 7.441 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002868/0.5204, allocations: 169.2 kB / 0.5318 GB, free: 7.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004093/0.5208, allocations: 299.2 kB / 0.5321 GB, free: 7.105 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006984/0.5215, allocations: 489.2 kB / 0.5326 GB, free: 6.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5215, allocations: 1.188 kB / 0.5326 GB, free: 6.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001468/0.523, allocations: 0.8008 MB / 0.5334 GB, free: 6.262 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.523, allocations: 6.656 kB / 0.5334 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.523, allocations: 8.812 kB / 0.5334 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006923/0.5237, allocations: 204.2 kB / 0.5336 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003287/0.5241, allocations: 79.06 kB / 0.5336 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004846/0.5289, allocations: 4.23 MB / 0.5378 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.5293, allocations: 24.55 kB / 0.5378 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.5294, allocations: 18.91 kB / 0.5378 GB, free: 2.434 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003661/0.5297, allocations: 222.6 kB / 0.538 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.5299, allocations: 50.91 kB / 0.5381 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009976/0.5309, allocations: 0.6399 MB / 0.5387 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.5309, allocations: 4 kB / 0.5387 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.5309, allocations: 1.562 kB / 0.5387 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.5309, allocations: 0 / 0.5387 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.5326, allocations: 1.189 MB / 0.5399 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.5327, allocations: 1.188 kB / 0.5399 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004283/0.5331, allocations: 82.61 kB / 0.5399 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001645/0.5333, allocations: 53.02 kB / 0.54 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.5333, allocations: 16.67 kB / 0.54 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002074/0.5354, allocations: 2.833 MB / 0.5428 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5354, allocations: 1.062 kB / 0.5428 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.5366, allocations: 0.9609 MB / 0.5437 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.5368, allocations: 149.4 kB / 0.5439 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.864e-05/0.5369, allocations: 12.98 kB / 0.5439 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.5371, allocations: 8.531 kB / 0.5439 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.5372, allocations: 32.38 kB / 0.5439 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.5372, allocations: 11.5 kB / 0.5439 GB, free: 12.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003279/0.5375, allocations: 291.6 kB / 0.5442 GB, free: 12.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5375, allocations: 0 / 0.5442 GB, free: 12.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006921/0.5382, allocations: 134.2 kB / 0.5443 GB, free: 12.73 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000144/0.5384, allocations: 109.1 kB / 0.5444 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.5397, allocations: 0.7408 MB / 0.5452 GB, free: 12.15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.5398, allocations: 0 / 0.5452 GB, free: 12.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006155/0.5404, allocations: 429.5 kB / 0.5456 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007403/0.5411, allocations: 116 kB / 0.5457 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002645/0.5438, allocations: 1.483 MB / 0.5471 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007028/0.5445, allocations: 0.9466 MB / 0.548 GB, free: 9.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003794/0.5449, allocations: 103.8 kB / 0.5481 GB, free: 9.879 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.545, allocations: 38.58 kB / 0.5482 GB, free: 9.867 MB / 414.1 MB Notification: Performance of SimCode: time 6.92e-07/0.545, allocations: 4 kB / 0.5482 GB, free: 9.863 MB / 414.1 MB Notification: Performance of Templates: time 0.01609/0.5611, allocations: 6.898 MB / 0.5549 GB, free: 3.055 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches