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.001264/0.001264, allocations: 112.5 kB / 21.19 MB, free: 0.7812 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.001419/0.001419, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 7.984 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.1782/0.1782, allocations: 38.53 MB / 353.2 MB, free: 12.52 MB / 286.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: 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: 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.001933/0.001933, allocations: 67.91 kB / 493.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3174, allocations: 62.47 MB / 0.5432 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006254/0.3237, allocations: 4.712 MB / 0.5478 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002489/0.3262, allocations: 1.523 MB / 0.5493 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002501/0.3264, allocations: 22.06 kB / 0.5493 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004534/0.3269, allocations: 124 kB / 0.5495 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006737/0.3276, allocations: 280.8 kB / 0.5497 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002922/0.3279, allocations: 117 kB / 0.5498 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000767/0.3286, allocations: 0.512 MB / 0.5503 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.3289, allocations: 106.6 kB / 0.5504 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003309/0.3292, allocations: 208.5 kB / 0.5506 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003595/0.3295, allocations: 219.3 kB / 0.5509 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.958e-05/0.3296, allocations: 24.84 kB / 0.5509 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.447e-05/0.3297, allocations: 27 kB / 0.5509 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.3298, allocations: 107.9 kB / 0.551 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.33, allocations: 180.5 kB / 0.5512 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004859/0.3305, allocations: 389 kB / 0.5515 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3305, allocations: 0 / 0.5515 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3305, allocations: 0 / 0.5515 GB, free: 10.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.3305, allocations: 0 / 0.5515 GB, free: 10.21 MB / 398.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.001088/0.3316, allocations: 0.5941 MB / 0.5521 GB, free: 9.707 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.3316, allocations: 12.38 kB / 0.5521 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.321e-05/0.3317, allocations: 48.38 kB / 0.5522 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006536/0.3323, allocations: 336.6 kB / 0.5525 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.3324, allocations: 27.38 kB / 0.5525 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.144e-05/0.3324, allocations: 30 kB / 0.5526 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004928/0.3329, allocations: 331.1 kB / 0.5529 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.3329, allocations: 1.281 kB / 0.5529 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/0.333, allocations: 11.03 kB / 0.5529 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.333, allocations: 11.33 kB / 0.5529 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003416/0.3333, allocations: 203.2 kB / 0.5531 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.335, allocations: 1.441 MB / 0.5545 GB, free: 7.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003974/0.3354, allocations: 194 kB / 0.5547 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.3355, allocations: 74.45 kB / 0.5548 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.3355, allocations: 2.25 kB / 0.5548 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.3356, allocations: 44.83 kB / 0.5548 GB, free: 7.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.373e-06/0.3356, allocations: 4 kB / 0.5548 GB, free: 7.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001092/0.3366, allocations: 0.6264 MB / 0.5554 GB, free: 6.941 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.716e-05/0.3367, allocations: 131.9 kB / 0.5555 GB, free: 6.785 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/0.3371, allocations: 316 kB / 0.5558 GB, free: 6.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.3371, allocations: 30.92 kB / 0.5559 GB, free: 6.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001758/0.3373, allocations: 220.4 kB / 0.5561 GB, free: 6.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.536e-05/0.3373, allocations: 64.3 kB / 0.5561 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.227e-05/0.3374, allocations: 59.02 kB / 0.5562 GB, free: 6.238 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3376, allocations: 342.6 kB / 0.5565 GB, free: 5.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.627e-05/0.3377, allocations: 50.56 kB / 0.5566 GB, free: 5.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.3379, allocations: 149.1 kB / 0.5567 GB, free: 5.723 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002895/0.3381, allocations: 225.9 kB / 0.5569 GB, free: 5.527 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3381, allocations: 0.9688 kB / 0.5569 GB, free: 5.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003796/0.3385, allocations: 251.4 kB / 0.5572 GB, free: 5.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.3385, allocations: 13.09 kB / 0.5572 GB, free: 5.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.3385, allocations: 3.5 kB / 0.5572 GB, free: 5.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.3386, allocations: 9.719 kB / 0.5572 GB, free: 5.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003545/0.3389, allocations: 81.64 kB / 0.5573 GB, free: 5.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001038/0.34, allocations: 1.266 MB / 0.5585 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.3401, allocations: 11.67 kB / 0.5585 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.3401, allocations: 21.89 kB / 0.5585 GB, free: 4.016 MB / 398.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.000199/0.3403, allocations: 172.7 kB / 0.5587 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.673e-05/0.3404, allocations: 30.56 kB / 0.5587 GB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003167/0.3408, allocations: 181.6 kB / 0.5589 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.3408, allocations: 3.469 kB / 0.5589 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.3408, allocations: 1.219 kB / 0.5589 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3408, allocations: 1.062 kB / 0.5589 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008493/0.3416, allocations: 0.5254 MB / 0.5594 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3416, allocations: 4.031 kB / 0.5594 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.3418, allocations: 43.91 kB / 0.5595 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3418, allocations: 4 kB / 0.5595 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.3419, allocations: 8 kB / 0.5595 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3419, allocations: 0 / 0.5595 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3419, allocations: 0 / 0.5595 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005099/0.3424, allocations: 498.6 kB / 0.56 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.542e-05/0.3424, allocations: 31.7 kB / 0.56 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.3425, allocations: 8 kB / 0.56 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.3427, allocations: 7.969 kB / 0.56 GB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.3e-05/0.3427, allocations: 15.92 kB / 0.56 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.3427, allocations: 8 kB / 0.56 GB, free: 2.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002307/0.3429, allocations: 223.2 kB / 0.5602 GB, free: 2.371 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3429, allocations: 4 kB / 0.5602 GB, free: 2.367 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004314/0.3434, allocations: 56 kB / 0.5603 GB, free: 2.312 MB / 398.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.0001202/0.3435, allocations: 99.25 kB / 0.5604 GB, free: 2.203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004218/0.3439, allocations: 152.5 kB / 0.5605 GB, free: 2.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3439, allocations: 8.125 kB / 0.5606 GB, free: 2.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.344, allocations: 67.84 kB / 0.5606 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007028/0.3447, allocations: 99.7 kB / 0.5607 GB, free: 1.891 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.3463, allocations: 0.861 MB / 0.5616 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.3468, allocations: 0.799 MB / 0.5623 GB, free: 160 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.482e-05/0.3469, allocations: 27.44 kB / 0.5624 GB, free: 132 kB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3469, allocations: 0 / 0.5624 GB, free: 132 kB / 398.1 MB Notification: Performance of Templates: time 0.007642/0.3545, allocations: 4.769 MB / 0.567 GB, free: 11.38 MB / 414.1 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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.721652491949499]