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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 121 kB / 18.49 MB, free: 4.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 213.5 kB / 21.45 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.513/1.513, allocations: 230.6 MB / 254.8 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1859/0.1859, allocations: 38.5 MB / 349.4 MB, free: 2.652 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 65.23 kB / 487.8 MB, free: 32.34 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1216, allocations: 62.42 MB / 0.5374 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.008161/0.1297, allocations: 5.434 MB / 0.5427 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007593/0.1373, allocations: 4.222 MB / 0.5468 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005429/0.1379, allocations: 27.75 kB / 0.5468 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01027/0.1481, allocations: 4.881 MB / 0.5516 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.1494, allocations: 346.4 kB / 0.5519 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008103/0.1502, allocations: 251.5 kB / 0.5522 GB, free: 10.37 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002431/0.1527, allocations: 1.567 MB / 0.5537 GB, free: 8.801 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006295/0.1533, allocations: 312.2 kB / 0.554 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005704/0.1539, allocations: 382.6 kB / 0.5543 GB, free: 8.113 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007551/0.1546, allocations: 494.2 kB / 0.5548 GB, free: 7.629 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.613e-05/0.1547, allocations: 48 kB / 0.5549 GB, free: 7.582 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003178/0.155, allocations: 119.8 kB / 0.555 GB, free: 7.465 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003105/0.1553, allocations: 295.1 kB / 0.5553 GB, free: 7.176 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003383/0.1557, allocations: 318.4 kB / 0.5556 GB, free: 6.863 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.1567, allocations: 0.7509 MB / 0.5563 GB, free: 6.109 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1567, allocations: 3.938 kB / 0.5563 GB, free: 6.105 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1567, allocations: 0 / 0.5563 GB, free: 6.105 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.1567, allocations: 7.938 kB / 0.5563 GB, free: 6.098 MB / 414.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.001906/0.1586, allocations: 0.9244 MB / 0.5572 GB, free: 5.121 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1587, allocations: 8.031 kB / 0.5572 GB, free: 5.113 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.22e-05/0.1587, allocations: 17.19 kB / 0.5572 GB, free: 5.098 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.1588, allocations: 82.7 kB / 0.5573 GB, free: 5.008 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004828/0.1593, allocations: 100.5 kB / 0.5574 GB, free: 4.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.1604, allocations: 0.5644 MB / 0.558 GB, free: 4.305 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.1604, allocations: 32.98 kB / 0.558 GB, free: 4.273 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.935e-05/0.1605, allocations: 44 kB / 0.558 GB, free: 4.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.1616, allocations: 0.6492 MB / 0.5587 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.1616, allocations: 7.938 kB / 0.5587 GB, free: 3.535 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.201e-05/0.1616, allocations: 19.98 kB / 0.5587 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001424/0.1618, allocations: 44.97 kB / 0.5587 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000829/0.1626, allocations: 495.6 kB / 0.5592 GB, free: 2.988 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003718/0.1663, allocations: 2.524 MB / 0.5617 GB, free: 332 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005512/0.1669, allocations: 295.6 kB / 0.562 GB, free: 8 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000302/0.1672, allocations: 166.5 kB / 0.5621 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.704e-05/0.1672, allocations: 4.5 kB / 0.5621 GB, free: 15.83 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.03e-05/0.1672, allocations: 42.5 kB / 0.5622 GB, free: 15.78 MB / 430.1 MB Notification: Performance of pre-optimization done (n=32): time 2.345e-06/0.1673, allocations: 0 / 0.5622 GB, free: 15.78 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.002924/0.1702, allocations: 1.654 MB / 0.5638 GB, free: 13.99 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.991e-05/0.1703, allocations: 110.8 kB / 0.5639 GB, free: 13.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005598/0.1708, allocations: 421.9 kB / 0.5643 GB, free: 13.44 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.1709, allocations: 33.64 kB / 0.5643 GB, free: 13.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002703/0.1711, allocations: 316.2 kB / 0.5646 GB, free: 13.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.1713, allocations: 131 kB / 0.5647 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.1714, allocations: 86.25 kB / 0.5648 GB, free: 12.87 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002096/0.1716, allocations: 362.7 kB / 0.5652 GB, free: 12.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003039/0.1719, allocations: 173 kB / 0.5653 GB, free: 12.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.1723, allocations: 300.7 kB / 0.5656 GB, free: 11.99 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007077/0.173, allocations: 491.4 kB / 0.5661 GB, free: 11.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.173, allocations: 4 kB / 0.5661 GB, free: 11.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001463/0.1745, allocations: 0.7883 MB / 0.5669 GB, free: 10.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.1745, allocations: 4 kB / 0.5669 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.1745, allocations: 7.984 kB / 0.5669 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007345/0.1753, allocations: 205.5 kB / 0.5671 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003537/0.1756, allocations: 88.03 kB / 0.5672 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005571/0.1812, allocations: 4.224 MB / 0.5713 GB, free: 5.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003457/0.1815, allocations: 19.98 kB / 0.5713 GB, free: 5.801 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/0.1816, allocations: 24 kB / 0.5713 GB, free: 5.777 MB / 430.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.0003542/0.1819, allocations: 222.6 kB / 0.5715 GB, free: 5.551 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.1821, allocations: 55.66 kB / 0.5716 GB, free: 5.496 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.1832, allocations: 0.6379 MB / 0.5722 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1832, allocations: 4 kB / 0.5722 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.1832, allocations: 4 kB / 0.5722 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1832, allocations: 0 / 0.5722 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.185, allocations: 1.191 MB / 0.5734 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.185, allocations: 4 kB / 0.5734 GB, free: 3.504 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004453/0.1855, allocations: 71.95 kB / 0.5735 GB, free: 3.434 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000169/0.1857, allocations: 53.61 kB / 0.5735 GB, free: 3.375 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.653e-05/0.1857, allocations: 15.98 kB / 0.5735 GB, free: 3.359 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002424/0.1881, allocations: 2.843 MB / 0.5763 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/0.1881, allocations: 3.938 kB / 0.5763 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.1896, allocations: 0.9649 MB / 0.5772 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002668/0.1898, allocations: 144.8 kB / 0.5774 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.787e-05/0.1899, allocations: 15.92 kB / 0.5774 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002945/0.1902, allocations: 8 kB / 0.5774 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.78e-05/0.1903, allocations: 31.95 kB / 0.5774 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-05/0.1903, allocations: 16 kB / 0.5774 GB, free: 14.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004569/0.1908, allocations: 291.1 kB / 0.5777 GB, free: 14.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1908, allocations: 0 / 0.5777 GB, free: 14.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006898/0.1915, allocations: 135.9 kB / 0.5779 GB, free: 14.55 MB / 446.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.001732/0.1932, allocations: 1.502 MB / 0.5793 GB, free: 12.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.1947, allocations: 0.7209 MB / 0.58 GB, free: 12.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1947, allocations: 4.062 kB / 0.58 GB, free: 12.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006389/0.1953, allocations: 405.1 kB / 0.5804 GB, free: 11.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008499/0.1962, allocations: 117.6 kB / 0.5805 GB, free: 11.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008811/0.205, allocations: 5.555 MB / 0.586 GB, free: 5.863 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006991/0.2057, allocations: 0.9483 MB / 0.5869 GB, free: 4.887 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003304/0.206, allocations: 100.4 kB / 0.587 GB, free: 4.785 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003215/0.2064, allocations: 195.4 kB / 0.5872 GB, free: 4.594 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2064, allocations: 0 / 0.5872 GB, free: 4.594 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05977/0.2661, allocations: 12.32 MB / 0.5992 GB, free: 8.477 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.6, allocations: 8.547 kB / 0.5992 GB, free: 8.469 MB / 462.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.04537316702772]