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.001576/0.001576, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001855/0.001856, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.511/1.511, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1841/0.1841, allocations: 38.05 MB / 330.5 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 62.41 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1432, allocations: 58.07 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007586/0.1508, allocations: 5.385 MB / 463.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006182/0.157, allocations: 4.156 MB / 467.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004261/0.1575, allocations: 19.88 kB / 467.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01015/0.1677, allocations: 4.841 MB / 472.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.169, allocations: 346.3 kB / 473.1 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007869/0.1698, allocations: 247.5 kB / 473.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002249/0.172, allocations: 1.567 MB / 474.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006514/0.1727, allocations: 384.2 kB / 475.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000507/0.1732, allocations: 374.6 kB / 475.6 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006421/0.1739, allocations: 450.3 kB / 476 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.086e-05/0.174, allocations: 44 kB / 476.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000299/0.1743, allocations: 115.9 kB / 476.2 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000288/0.1746, allocations: 283.2 kB / 476.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003491/0.1749, allocations: 322.4 kB / 476.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008714/0.1758, allocations: 0.7435 MB / 477.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1758, allocations: 0 / 477.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1758, allocations: 0 / 477.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.1758, allocations: 4 kB / 477.5 MB, free: 4.043 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.00171/0.1776, allocations: 0.9055 MB / 478.4 MB, free: 3.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.1776, allocations: 15.89 kB / 478.5 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004655/0.1781, allocations: 96.05 kB / 478.6 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.1792, allocations: 0.5528 MB / 479.1 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.605e-05/0.1792, allocations: 36.98 kB / 479.1 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.1793, allocations: 51.89 kB / 479.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009666/0.1803, allocations: 0.6453 MB / 479.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.1803, allocations: 0 / 479.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.137e-05/0.1804, allocations: 19.98 kB / 479.9 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.1805, allocations: 52.95 kB / 479.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007662/0.1813, allocations: 0.4917 MB / 480.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003423/0.1847, allocations: 2.515 MB / 482.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005112/0.1853, allocations: 311.6 kB / 483.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.1855, allocations: 183.1 kB / 483.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.1856, allocations: 8.484 kB / 483.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.1856, allocations: 42.55 kB / 483.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.873e-06/0.1857, allocations: 3.938 kB / 483.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002798/0.1885, allocations: 1.639 MB / 485.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.1885, allocations: 110.8 kB / 485.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004862/0.189, allocations: 426 kB / 485.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.1891, allocations: 33.7 kB / 485.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002551/0.1893, allocations: 303.6 kB / 485.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.1895, allocations: 126.2 kB / 486.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.1896, allocations: 86.25 kB / 486.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002095/0.1898, allocations: 362.7 kB / 486.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.1901, allocations: 165 kB / 486.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004431/0.1906, allocations: 301.8 kB / 487 MB, free: 10.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008614/0.1914, allocations: 487.9 kB / 487.4 MB, free: 9.516 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.1915, allocations: 0 / 487.4 MB, free: 9.516 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001383/0.1928, allocations: 0.807 MB / 488.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1929, allocations: 4 kB / 488.3 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1929, allocations: 4 kB / 488.3 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006442/0.1935, allocations: 213.8 kB / 488.5 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.1939, allocations: 75.89 kB / 488.5 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004748/0.1986, allocations: 4.224 MB / 492.8 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003699/0.199, allocations: 23.92 kB / 492.8 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.1991, allocations: 20 kB / 492.8 MB, free: 3.832 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.0003441/0.1994, allocations: 218 kB / 493 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.35e-05/0.1995, allocations: 47.44 kB / 493.1 MB, free: 3.562 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.2006, allocations: 0.6456 MB / 493.7 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2006, allocations: 4 kB / 493.7 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2006, allocations: 4 kB / 493.7 MB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.2006, allocations: 3.938 kB / 493.7 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.2023, allocations: 1.199 MB / 494.9 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2023, allocations: 0 / 494.9 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/0.2028, allocations: 71.89 kB / 495 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001619/0.2029, allocations: 57.67 kB / 495 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-05/0.203, allocations: 15.98 kB / 495.1 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002428/0.2054, allocations: 2.831 MB / 497.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2054, allocations: 3.938 kB / 497.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.2068, allocations: 0.9568 MB / 498.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002667/0.2071, allocations: 140.5 kB / 499 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.963e-05/0.2071, allocations: 15.98 kB / 499 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002654/0.2074, allocations: 16 kB / 499 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.852e-05/0.2075, allocations: 27.95 kB / 499.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.2075, allocations: 8 kB / 499.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004024/0.208, allocations: 295.1 kB / 499.3 MB, free: 12.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.208, allocations: 0 / 499.3 MB, free: 12.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007488/0.2087, allocations: 128 kB / 499.5 MB, free: 12.63 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.0002081/0.2089, allocations: 119.1 kB / 499.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.2103, allocations: 0.7436 MB / 0.4886 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.2104, allocations: 0 / 0.4886 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005302/0.2109, allocations: 417.2 kB / 0.489 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007365/0.2116, allocations: 117 kB / 0.4891 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.2141, allocations: 1.472 MB / 0.4906 GB, free: 9.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005973/0.2147, allocations: 0.9444 MB / 0.4915 GB, free: 8.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002899/0.215, allocations: 104.4 kB / 0.4916 GB, free: 8.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.2151, allocations: 47.36 kB / 0.4916 GB, free: 8.562 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2151, allocations: 0 / 0.4916 GB, free: 8.562 MB / 382.1 MB Notification: Performance of Templates: time 0.01256/0.2277, allocations: 6.808 MB / 0.4983 GB, free: 1.816 MB / 382.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 -s cvode -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