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.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.0008133/0.0008133, allocations: 87.62 kB / 21.43 MB, free: 3.125 MB / 18.57 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.003367/0.003367, allocations: 160.8 kB / 24.7 MB, free: 9.414 MB / 18.57 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 0.8227/0.8227, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.2039/0.2039, allocations: 29.42 MB / 290.9 MB, free: 2.426 MB / 266.7 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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 431.5 MB, free: 13.09 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.586e-05/2.775e-05, allocations: 2.281 kB / 431.5 MB, free: 13.09 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004062/0.004089, allocations: 4.435 MB / 435.9 MB, free: 8.629 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.005699, allocations: 1.405 MB / 437.3 MB, free: 7.219 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.005908, allocations: 23.81 kB / 437.3 MB, free: 7.195 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003556/0.006263, allocations: 111.1 kB / 437.4 MB, free: 7.086 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005652/0.006828, allocations: 286.1 kB / 437.7 MB, free: 6.805 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.007064, allocations: 115.7 kB / 437.8 MB, free: 6.691 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005585/0.007622, allocations: 0.5173 MB / 438.4 MB, free: 6.172 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.007805, allocations: 112.4 kB / 438.5 MB, free: 6.059 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003245/0.00813, allocations: 283.2 kB / 438.7 MB, free: 5.781 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.00834, allocations: 179.5 kB / 438.9 MB, free: 5.605 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.784e-05/0.008378, allocations: 24 kB / 438.9 MB, free: 5.582 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.507e-05/0.008413, allocations: 28 kB / 439 MB, free: 5.555 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.067e-05/0.008493, allocations: 103.6 kB / 439.1 MB, free: 5.453 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.653e-05/0.00859, allocations: 127.7 kB / 439.2 MB, free: 5.328 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003162/0.008906, allocations: 374.7 kB / 439.6 MB, free: 4.961 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.008909, allocations: 4 kB / 439.6 MB, free: 4.957 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.00891, allocations: 4 kB / 439.6 MB, free: 4.953 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.008916, allocations: 0 / 439.6 MB, free: 4.953 MB / 410.7 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.0006902/0.009606, allocations: 0.5954 MB / 440.2 MB, free: 4.328 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.009639, allocations: 15.98 kB / 440.2 MB, free: 4.312 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/0.009697, allocations: 40.7 kB / 440.2 MB, free: 4.273 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000403/0.0101, allocations: 324.8 kB / 440.5 MB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.01012, allocations: 25.03 kB / 440.6 MB, free: 3.906 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.01016, allocations: 28.38 kB / 440.6 MB, free: 3.879 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003372/0.01049, allocations: 343.4 kB / 440.9 MB, free: 3.508 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.01051, allocations: 3.953 kB / 440.9 MB, free: 3.504 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.01053, allocations: 12 kB / 440.9 MB, free: 3.492 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.01053, allocations: 8 kB / 440.9 MB, free: 3.484 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002209/0.01075, allocations: 201.8 kB / 441.1 MB, free: 3.285 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009623/0.01172, allocations: 1.336 MB / 442.5 MB, free: 1.875 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/0.01198, allocations: 186.3 kB / 442.7 MB, free: 1.656 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.362e-05/0.01205, allocations: 75.53 kB / 442.7 MB, free: 1.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.855e-05/0.01207, allocations: 7.938 kB / 442.7 MB, free: 1.562 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.01209, allocations: 34.56 kB / 442.8 MB, free: 1.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.01209, allocations: 4 kB / 442.8 MB, free: 1.516 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007335/0.01283, allocations: 0.6236 MB / 443.4 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.01288, allocations: 136.5 kB / 443.5 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.01306, allocations: 288.4 kB / 443.8 MB, free: 412 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.01308, allocations: 29.7 kB / 443.8 MB, free: 376 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.446e-05/0.01317, allocations: 216.5 kB / 444.1 MB, free: 152 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.829e-05/0.01321, allocations: 71.42 kB / 444.1 MB, free: 80 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.01326, allocations: 53.66 kB / 444.2 MB, free: 20 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.1576/0.1709, allocations: 342.2 kB / 444.5 MB, free: 54.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.171, allocations: 48.42 kB / 444.6 MB, free: 54.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.158e-05/0.1711, allocations: 150.9 kB / 444.7 MB, free: 54.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.1712, allocations: 224.7 kB / 444.9 MB, free: 54.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1712, allocations: 0 / 444.9 MB, free: 54.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002413/0.1715, allocations: 248 kB / 445.2 MB, free: 54.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1715, allocations: 10.41 kB / 445.2 MB, free: 54.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1715, allocations: 3.344 kB / 445.2 MB, free: 54.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.1715, allocations: 9.578 kB / 445.2 MB, free: 54.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.1718, allocations: 83.72 kB / 445.3 MB, free: 54.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004322/0.1722, allocations: 1.246 MB / 446.5 MB, free: 52.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.1723, allocations: 17.25 kB / 446.5 MB, free: 52.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.1723, allocations: 13.09 kB / 446.6 MB, free: 52.91 MB / 410.7 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.0001182/0.1724, allocations: 160.9 kB / 446.7 MB, free: 52.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.927e-05/0.1725, allocations: 34.75 kB / 446.7 MB, free: 52.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001916/0.1727, allocations: 183.1 kB / 446.9 MB, free: 52.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1727, allocations: 2.969 kB / 446.9 MB, free: 52.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-06/0.1727, allocations: 3 kB / 446.9 MB, free: 52.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1727, allocations: 3.469 kB / 446.9 MB, free: 52.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004033/0.1731, allocations: 476.7 kB / 447.4 MB, free: 52.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1731, allocations: 0 / 447.4 MB, free: 52.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.1732, allocations: 39.7 kB / 447.4 MB, free: 52.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1732, allocations: 3.156 kB / 447.4 MB, free: 52.49 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.1732, allocations: 4 kB / 447.4 MB, free: 52.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.165e-06/0.1732, allocations: 3.281 kB / 447.4 MB, free: 52.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1732, allocations: 0 / 447.4 MB, free: 52.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002265/0.1735, allocations: 0.4933 MB / 447.9 MB, free: 52.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.261e-05/0.1735, allocations: 25.02 kB / 448 MB, free: 52.13 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.1735, allocations: 7.375 kB / 448 MB, free: 52.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.853e-05/0.1736, allocations: 6.188 kB / 448 MB, free: 52.13 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.331e-05/0.1736, allocations: 16.95 kB / 448 MB, free: 52.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.1736, allocations: 5.453 kB / 448 MB, free: 52.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.696e-05/0.1737, allocations: 197.7 kB / 448.2 MB, free: 52.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1737, allocations: 0 / 448.2 MB, free: 52.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002601/0.174, allocations: 60.38 kB / 448.2 MB, free: 52.01 MB / 410.7 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 8.643e-05/0.1741, allocations: 106.3 kB / 448.4 MB, free: 51.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002496/0.1743, allocations: 157 kB / 448.5 MB, free: 51.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1743, allocations: 2.656 kB / 448.5 MB, free: 51.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.344e-05/0.1744, allocations: 63.38 kB / 448.6 MB, free: 51.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004404/0.1748, allocations: 87.28 kB / 448.7 MB, free: 51.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008711/0.1757, allocations: 0.7527 MB / 449.4 MB, free: 51.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.1758, allocations: 196.1 kB / 449.6 MB, free: 51.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.03e-05/0.1758, allocations: 34.12 kB / 449.6 MB, free: 51.29 MB / 410.7 MB Notification: Performance of SimCode: time 8.82e-07/0.1758, allocations: 3.938 kB / 449.6 MB, free: 51.29 MB / 410.7 MB Notification: Performance of Templates: time 0.00381/0.1797, allocations: 4.696 MB / 454.3 MB, free: 50.9 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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: 4.892176689580083]