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.001037/0.001037, allocations: 109.6 kB / 17.06 MB, free: 6.004 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.001024/0.001024, allocations: 191 kB / 18 MB, free: 5.09 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.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1958/0.1958, allocations: 38.06 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 59.91 kB / 458.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4575/0.459, allocations: 58.07 MB / 0.5041 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007562/0.4666, allocations: 5.379 MB / 0.5094 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007662/0.4743, allocations: 4.152 MB / 0.5134 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008667/0.4752, allocations: 19.56 kB / 0.5134 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01257/0.4878, allocations: 4.851 MB / 0.5182 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001454/0.4893, allocations: 336.1 kB / 0.5185 GB, free: 15.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009624/0.4903, allocations: 253 kB / 0.5187 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003224/0.4935, allocations: 1.563 MB / 0.5203 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009295/0.4945, allocations: 390.5 kB / 0.5206 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001007/0.4955, allocations: 369.5 kB / 0.521 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001122/0.4966, allocations: 441.1 kB / 0.5214 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002147/0.4968, allocations: 45.38 kB / 0.5215 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005684/0.4974, allocations: 122 kB / 0.5216 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004087/0.4978, allocations: 274.5 kB / 0.5218 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004571/0.4983, allocations: 328.4 kB / 0.5221 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001438/0.4998, allocations: 0.7492 MB / 0.5229 GB, free: 13.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.4998, allocations: 1.125 kB / 0.5229 GB, free: 13.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4998, allocations: 0 / 0.5229 GB, free: 13.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.4998, allocations: 0.6094 kB / 0.5229 GB, free: 13.79 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.002196/0.502, allocations: 0.929 MB / 0.5238 GB, free: 13.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.5021, allocations: 13.33 kB / 0.5238 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005463/0.5026, allocations: 96.14 kB / 0.5239 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.5039, allocations: 0.5584 MB / 0.5244 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.87e-05/0.504, allocations: 30.75 kB / 0.5245 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.5041, allocations: 55.38 kB / 0.5245 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.5053, allocations: 0.6442 MB / 0.5251 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.5054, allocations: 3.109 kB / 0.5252 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.424e-05/0.5054, allocations: 20.27 kB / 0.5252 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/0.5056, allocations: 48.48 kB / 0.5252 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008656/0.5065, allocations: 499.1 kB / 0.5257 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003899/0.5104, allocations: 2.537 MB / 0.5282 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005058/0.5109, allocations: 314.8 kB / 0.5285 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002904/0.5112, allocations: 188.5 kB / 0.5286 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.5112, allocations: 3.75 kB / 0.5287 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.5113, allocations: 36.84 kB / 0.5287 GB, free: 9.855 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.084e-06/0.5113, allocations: 0 / 0.5287 GB, free: 9.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00284/0.5141, allocations: 1.653 MB / 0.5303 GB, free: 8.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.02e-05/0.5142, allocations: 109.7 kB / 0.5304 GB, free: 8.445 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000599/0.5148, allocations: 427.3 kB / 0.5308 GB, free: 8.184 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.5149, allocations: 34.67 kB / 0.5308 GB, free: 8.145 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/0.5151, allocations: 311.1 kB / 0.5311 GB, free: 7.871 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.5153, allocations: 134.2 kB / 0.5313 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.5154, allocations: 84.98 kB / 0.5314 GB, free: 7.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.5156, allocations: 363.4 kB / 0.5317 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002937/0.5159, allocations: 164.8 kB / 0.5319 GB, free: 7.266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.5163, allocations: 307.8 kB / 0.5322 GB, free: 7.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006822/0.517, allocations: 485.1 kB / 0.5326 GB, free: 6.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.517, allocations: 1.062 kB / 0.5326 GB, free: 6.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001463/0.5185, allocations: 0.8006 MB / 0.5334 GB, free: 6.168 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.5185, allocations: 7.375 kB / 0.5334 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.5185, allocations: 8.188 kB / 0.5334 GB, free: 6.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006863/0.5192, allocations: 216 kB / 0.5336 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/0.5196, allocations: 76.14 kB / 0.5337 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005281/0.5249, allocations: 4.231 MB / 0.5378 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004519/0.5253, allocations: 16.56 kB / 0.5378 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.5254, allocations: 23.48 kB / 0.5379 GB, free: 2.336 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.000408/0.5258, allocations: 222.9 kB / 0.5381 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.5259, allocations: 53.81 kB / 0.5381 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.527, allocations: 0.6355 MB / 0.5387 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.527, allocations: 4.344 kB / 0.5387 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.527, allocations: 2.156 kB / 0.5388 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.389e-05/0.5271, allocations: 4.984 kB / 0.5388 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.5289, allocations: 1.188 MB / 0.5399 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.5289, allocations: 1.031 kB / 0.5399 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000452/0.5294, allocations: 79.12 kB / 0.54 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001811/0.5295, allocations: 56.83 kB / 0.54 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.5296, allocations: 9.031 kB / 0.5401 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.5319, allocations: 2.844 MB / 0.5428 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.5319, allocations: 5.219 kB / 0.5428 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.5332, allocations: 0.9569 MB / 0.5438 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002663/0.5335, allocations: 145.5 kB / 0.5439 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.456e-05/0.5336, allocations: 13.5 kB / 0.5439 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.5339, allocations: 12.11 kB / 0.5439 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.068e-05/0.5339, allocations: 32.23 kB / 0.544 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.534, allocations: 11.97 kB / 0.544 GB, free: 12.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004035/0.5344, allocations: 291.4 kB / 0.5443 GB, free: 12.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5344, allocations: 1.5 kB / 0.5443 GB, free: 12.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007422/0.5351, allocations: 132.7 kB / 0.5444 GB, free: 12.62 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.0001609/0.5353, allocations: 118 kB / 0.5445 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001512/0.5368, allocations: 0.7474 MB / 0.5452 GB, free: 12.03 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.5369, allocations: 1.375 kB / 0.5452 GB, free: 12.03 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005776/0.5374, allocations: 416.8 kB / 0.5456 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007989/0.5382, allocations: 125.9 kB / 0.5457 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002672/0.5409, allocations: 1.488 MB / 0.5472 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006542/0.5416, allocations: 0.9506 MB / 0.5481 GB, free: 9.797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003581/0.542, allocations: 95.62 kB / 0.5482 GB, free: 9.754 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.5421, allocations: 43.2 kB / 0.5483 GB, free: 9.738 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5421, allocations: 0 / 0.5483 GB, free: 9.738 MB / 414.1 MB Notification: Performance of Templates: time 0.01351/0.5556, allocations: 6.92 MB / 0.555 GB, free: 2.988 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