Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 115.8 kB / 17.69 MB, free: 5.371 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.001476/0.001477, allocations: 191 kB / 18.62 MB, free: 4.449 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.61/1.61, allocations: 222.9 MB / 242.3 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.195/0.195, allocations: 38.04 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 66.58 kB / 400.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1436, allocations: 58.07 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.008141/0.1518, allocations: 4.54 MB / 462.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.1545, allocations: 1.491 MB / 464.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002708/0.1548, allocations: 11.94 kB / 464.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005154/0.1553, allocations: 123.2 kB / 464.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007294/0.1561, allocations: 274.3 kB / 464.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002954/0.1564, allocations: 111.8 kB / 464.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008258/0.1573, allocations: 0.5019 MB / 465.4 MB, free: 272 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003111/0.1576, allocations: 167.8 kB / 465.5 MB, free: 108 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002977/0.1579, allocations: 199.1 kB / 465.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003692/0.1583, allocations: 207.1 kB / 465.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.1583, allocations: 28 kB / 465.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.464e-05/0.1584, allocations: 24 kB / 466 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.1585, allocations: 99.66 kB / 466.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002237/0.1588, allocations: 191 kB / 466.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004804/0.1593, allocations: 374.7 kB / 466.6 MB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.1593, allocations: 0 / 466.6 MB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1593, allocations: 4 kB / 466.6 MB, free: 15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.1593, allocations: 4 kB / 466.6 MB, free: 15 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001284/0.1606, allocations: 0.6592 MB / 467.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.1607, allocations: 11.89 kB / 467.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.573e-05/0.1608, allocations: 40.47 kB / 467.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007628/0.1615, allocations: 411.6 kB / 467.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.1616, allocations: 20.5 kB / 467.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.298e-05/0.1616, allocations: 28 kB / 467.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005303/0.1622, allocations: 334.2 kB / 468.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1622, allocations: 0 / 468.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.1622, allocations: 12 kB / 468.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1623, allocations: 4 kB / 468.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.1626, allocations: 209.5 kB / 468.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.1644, allocations: 1.478 MB / 469.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004854/0.1649, allocations: 196.5 kB / 470 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.1651, allocations: 83.72 kB / 470.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.1651, allocations: 7.938 kB / 470.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/0.1652, allocations: 42.56 kB / 470.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.493e-06/0.1652, allocations: 0 / 470.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.00136/0.1666, allocations: 0.6936 MB / 470.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.1667, allocations: 132.5 kB / 471 MB, free: 10.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003606/0.1671, allocations: 309.7 kB / 471.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.052e-05/0.1671, allocations: 33.7 kB / 471.3 MB, free: 9.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.1673, allocations: 215.8 kB / 471.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.965e-05/0.1674, allocations: 70.94 kB / 471.6 MB, free: 9.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-05/0.1675, allocations: 53.78 kB / 471.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.1677, allocations: 346.8 kB / 472 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.1678, allocations: 47.98 kB / 472 MB, free: 9.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.168, allocations: 148.8 kB / 472.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003296/0.1684, allocations: 219.9 kB / 472.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1684, allocations: 8 kB / 472.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004161/0.1688, allocations: 248.9 kB / 472.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.1689, allocations: 8 kB / 472.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.1689, allocations: 4.438 kB / 472.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3e-05/0.1689, allocations: 11.94 kB / 472.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.1693, allocations: 79.91 kB / 472.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.1706, allocations: 1.373 MB / 474.1 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.1708, allocations: 8 kB / 474.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.1708, allocations: 12 kB / 474.1 MB, free: 6.867 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000207/0.171, allocations: 166.2 kB / 474.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.1711, allocations: 35.72 kB / 474.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003529/0.1715, allocations: 180.5 kB / 474.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.1715, allocations: 7.984 kB / 474.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.1715, allocations: 0 / 474.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.1715, allocations: 4 kB / 474.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008851/0.1724, allocations: 0.5482 MB / 475 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1724, allocations: 4 kB / 475 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.1727, allocations: 47.94 kB / 475.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.1727, allocations: 4 kB / 475.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.1727, allocations: 4 kB / 475.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.1727, allocations: 4 kB / 475.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1727, allocations: 3.938 kB / 475.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005566/0.1733, allocations: 498.4 kB / 475.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.1734, allocations: 104.7 kB / 475.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.333e-05/0.1734, allocations: 4 kB / 475.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.1737, allocations: 4 kB / 475.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.1737, allocations: 19.95 kB / 475.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.1737, allocations: 8 kB / 475.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002351/0.174, allocations: 215.2 kB / 475.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.174, allocations: 0 / 475.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004227/0.1744, allocations: 60 kB / 476 MB, free: 4.863 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001761/0.1746, allocations: 115.1 kB / 476.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004475/0.175, allocations: 167.8 kB / 476.3 MB, free: 4.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.1751, allocations: 0 / 476.3 MB, free: 4.574 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.1752, allocations: 60.8 kB / 476.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007565/0.1759, allocations: 105.8 kB / 476.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.1777, allocations: 0.8114 MB / 477.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005285/0.1782, allocations: 0.8029 MB / 478.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001633/0.1784, allocations: 46.94 kB / 478.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.989e-05/0.1785, allocations: 31.44 kB / 478.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1785, allocations: 0 / 478.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of Templates: time 0.007903/0.1864, allocations: 3.201 MB / 481.3 MB, free: 15.51 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches