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.001111/0.001111, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001148/0.001148, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.302/1.302, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.176/0.176, allocations: 38.03 MB / 330.4 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 66.52 kB / 399.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0883/0.08967, allocations: 58.06 MB / 457.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006688/0.0964, allocations: 5.371 MB / 462.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00576/0.1022, allocations: 4.17 MB / 467.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003998/0.1026, allocations: 15.88 kB / 467.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00896/0.1116, allocations: 4.847 MB / 471.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008016/0.1124, allocations: 338.4 kB / 472.3 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006206/0.113, allocations: 247.5 kB / 472.5 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001911/0.115, allocations: 1.567 MB / 474.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005729/0.1155, allocations: 388.2 kB / 474.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004688/0.116, allocations: 374.5 kB / 474.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006057/0.1166, allocations: 438.4 kB / 475.3 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.1168, allocations: 47.94 kB / 475.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003057/0.1171, allocations: 127.8 kB / 475.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.1174, allocations: 275.3 kB / 475.7 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003739/0.1178, allocations: 322.4 kB / 476 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007462/0.1185, allocations: 0.7358 MB / 476.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1185, allocations: 0 / 476.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1185, allocations: 3.984 kB / 476.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.1186, allocations: 0 / 476.8 MB, free: 4.785 MB / 350.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.001675/0.1202, allocations: 0.9094 MB / 477.7 MB, free: 3.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1203, allocations: 11.89 kB / 477.7 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004679/0.1208, allocations: 92.06 kB / 477.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009795/0.1218, allocations: 0.5332 MB / 478.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.1218, allocations: 36.94 kB / 478.3 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.1219, allocations: 55.89 kB / 478.4 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009349/0.1228, allocations: 0.6453 MB / 479 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.1229, allocations: 0 / 479 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.901e-05/0.1229, allocations: 16 kB / 479 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/0.1231, allocations: 56.97 kB / 479.1 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007684/0.1239, allocations: 495.5 kB / 479.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003391/0.1273, allocations: 2.531 MB / 482.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004878/0.1278, allocations: 323.6 kB / 482.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.128, allocations: 183 kB / 482.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.1281, allocations: 8.484 kB / 482.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.1281, allocations: 42.5 kB / 482.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.034e-06/0.1281, allocations: 0 / 482.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002531/0.1307, allocations: 1.628 MB / 484.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.1307, allocations: 107 kB / 484.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000449/0.1312, allocations: 429.8 kB / 484.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.1312, allocations: 33.7 kB / 484.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002205/0.1315, allocations: 303.6 kB / 485.1 MB, free: 11.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.1316, allocations: 130.2 kB / 485.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.1317, allocations: 82.25 kB / 485.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1319, allocations: 362.7 kB / 485.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.1321, allocations: 161 kB / 485.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.1325, allocations: 309.8 kB / 486.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006237/0.1331, allocations: 487.7 kB / 486.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1331, allocations: 0 / 486.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001337/0.1345, allocations: 0.807 MB / 487.4 MB, free: 9.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.1345, allocations: 4 kB / 487.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.1345, allocations: 4 kB / 487.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006569/0.1352, allocations: 213.7 kB / 487.7 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.1355, allocations: 71.89 kB / 487.7 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004543/0.1401, allocations: 4.236 MB / 492 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.1404, allocations: 15.94 kB / 492 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.275e-05/0.1405, allocations: 23.98 kB / 492 MB, free: 4.582 MB / 366.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.0002929/0.1408, allocations: 226 kB / 492.2 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.1409, allocations: 47.44 kB / 492.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009044/0.1418, allocations: 0.6378 MB / 492.9 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.1418, allocations: 8.031 kB / 492.9 MB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.1418, allocations: 7.938 kB / 492.9 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.1418, allocations: 4.078 kB / 492.9 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.1435, allocations: 1.195 MB / 494.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1435, allocations: 0 / 494.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004402/0.144, allocations: 75.88 kB / 494.2 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001529/0.1441, allocations: 53.61 kB / 494.3 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.1442, allocations: 16 kB / 494.3 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001898/0.1461, allocations: 2.831 MB / 497.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1461, allocations: 0 / 497.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.1472, allocations: 0.9568 MB / 498.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/0.1474, allocations: 144.5 kB / 498.2 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.689e-05/0.1475, allocations: 8 kB / 498.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.1477, allocations: 19.98 kB / 498.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.1478, allocations: 23.97 kB / 498.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.1478, allocations: 12 kB / 498.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003046/0.1482, allocations: 291.1 kB / 498.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1482, allocations: 0 / 498.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005781/0.1487, allocations: 132 kB / 498.7 MB, free: 13.38 MB / 382.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.0001389/0.1489, allocations: 119.2 kB / 498.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.1502, allocations: 0.7908 MB / 499.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1503, allocations: 0 / 499.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005464/0.1508, allocations: 421.2 kB / 500 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007201/0.1515, allocations: 115.4 kB / 0.4884 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.1538, allocations: 1.542 MB / 0.4899 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005308/0.1544, allocations: 0.9444 MB / 0.4908 GB, free: 9.332 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.1545, allocations: 39.38 kB / 0.4909 GB, free: 9.293 MB / 382.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1545, allocations: 0 / 0.4909 GB, free: 9.293 MB / 382.1 MB Notification: Performance of Templates: time 0.01404/0.1685, allocations: 11.29 MB / 0.5019 GB, free: 14.02 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches