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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001206/0.001206, allocations: 181.2 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008958/0.0008958, allocations: 97 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1695/0.1695, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004341/0.000434, allocations: 8 kB / 424 MB, free: 37.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3263, allocations: 56.32 MB / 480.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1511/0.4775, allocations: 97.7 MB / 0.5645 GB, free: 4.723 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.4779, allocations: 91.95 kB / 0.5645 GB, free: 4.633 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02738/0.5053, allocations: 9.948 MB / 0.5743 GB, free: 10.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.5053, allocations: 0 / 0.5743 GB, free: 10.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.893e-05/0.5053, allocations: 19.88 kB / 0.5743 GB, free: 10.55 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.001083/0.5064, allocations: 0.6258 MB / 0.5749 GB, free: 9.879 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.5065, allocations: 8.031 kB / 0.5749 GB, free: 9.871 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.368e-05/0.5066, allocations: 43.67 kB / 0.5749 GB, free: 9.828 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.5079, allocations: 0.627 MB / 0.5756 GB, free: 9.156 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.508, allocations: 28.56 kB / 0.5756 GB, free: 9.129 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.508, allocations: 24 kB / 0.5756 GB, free: 9.105 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004759/0.5085, allocations: 343 kB / 0.5759 GB, free: 8.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.5086, allocations: 0 / 0.5759 GB, free: 8.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.211e-05/0.5086, allocations: 12 kB / 0.5759 GB, free: 8.719 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.5086, allocations: 8 kB / 0.576 GB, free: 8.711 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003286/0.5089, allocations: 205.5 kB / 0.5761 GB, free: 8.512 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.5105, allocations: 1.494 MB / 0.5776 GB, free: 6.926 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.511, allocations: 186.4 kB / 0.5778 GB, free: 6.707 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.511, allocations: 8.047 kB / 0.5778 GB, free: 6.699 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.511, allocations: 46.5 kB / 0.5778 GB, free: 6.645 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.814e-06/0.511, allocations: 4 kB / 0.5778 GB, free: 6.641 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.001143/0.5122, allocations: 0.6781 MB / 0.5785 GB, free: 5.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.379e-05/0.5123, allocations: 128.5 kB / 0.5786 GB, free: 5.754 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.5126, allocations: 289 kB / 0.5789 GB, free: 5.469 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.5126, allocations: 29.7 kB / 0.5789 GB, free: 5.434 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.5128, allocations: 211.9 kB / 0.5791 GB, free: 5.223 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.505e-05/0.5128, allocations: 67 kB / 0.5792 GB, free: 5.156 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.135e-05/0.5128, allocations: 11.94 kB / 0.5792 GB, free: 5.145 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.513, allocations: 346.8 kB / 0.5795 GB, free: 4.797 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.17e-05/0.5131, allocations: 51.95 kB / 0.5796 GB, free: 4.746 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.5132, allocations: 140.9 kB / 0.5797 GB, free: 4.562 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.5134, allocations: 77.47 kB / 0.5798 GB, free: 4.488 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5134, allocations: 0 / 0.5798 GB, free: 4.488 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003481/0.5138, allocations: 256.9 kB / 0.58 GB, free: 4.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.5138, allocations: 10.66 kB / 0.58 GB, free: 4.223 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.5138, allocations: 4 kB / 0.5801 GB, free: 4.219 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.5138, allocations: 4 kB / 0.5801 GB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.5142, allocations: 71.91 kB / 0.5801 GB, free: 4.145 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008209/0.515, allocations: 1.29 MB / 0.5814 GB, free: 2.727 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.5152, allocations: 8.25 kB / 0.5814 GB, free: 2.719 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.5152, allocations: 20 kB / 0.5814 GB, free: 2.699 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000192/0.5154, allocations: 170.2 kB / 0.5816 GB, free: 2.523 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.292e-05/0.5155, allocations: 35.56 kB / 0.5816 GB, free: 2.488 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003161/0.5158, allocations: 176 kB / 0.5818 GB, free: 2.312 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.5158, allocations: 4 kB / 0.5818 GB, free: 2.309 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.5158, allocations: 15.88 kB / 0.5818 GB, free: 2.293 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.5158, allocations: 0 / 0.5818 GB, free: 2.293 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007317/0.5166, allocations: 0.5374 MB / 0.5823 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.5166, allocations: 0 / 0.5823 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002259/0.5168, allocations: 43.92 kB / 0.5824 GB, free: 1.656 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.5168, allocations: 7.984 kB / 0.5824 GB, free: 1.648 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.5169, allocations: 3.953 kB / 0.5824 GB, free: 1.645 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.5169, allocations: 8 kB / 0.5824 GB, free: 1.637 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5169, allocations: 0 / 0.5824 GB, free: 1.637 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005003/0.5174, allocations: 0.5229 MB / 0.5829 GB, free: 1.074 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.377e-05/0.5175, allocations: 104.7 kB / 0.583 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.5175, allocations: 8 kB / 0.583 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.5177, allocations: 8 kB / 0.583 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.5178, allocations: 12.03 kB / 0.583 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.5178, allocations: 7.984 kB / 0.583 GB, free: 0.918 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002026/0.518, allocations: 219.2 kB / 0.5832 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.518, allocations: 0 / 0.5832 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004195/0.5184, allocations: 64 kB / 0.5833 GB, free: 0.6406 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002095/0.5186, allocations: 143.2 kB / 0.5834 GB, free: 500 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003368/0.519, allocations: 155.7 kB / 0.5836 GB, free: 344 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.519, allocations: 0 / 0.5836 GB, free: 344 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.5191, allocations: 71.84 kB / 0.5836 GB, free: 272 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000547/0.5197, allocations: 86.38 kB / 0.5837 GB, free: 188 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.5211, allocations: 1.01 MB / 0.5847 GB, free: 15.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.5215, allocations: 0.807 MB / 0.5855 GB, free: 14.31 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001889/0.5217, allocations: 50.92 kB / 0.5856 GB, free: 14.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.347e-05/0.5218, allocations: 27.44 kB / 0.5856 GB, free: 14.23 MB / 426.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5218, allocations: 4 kB / 0.5856 GB, free: 14.22 MB / 426.7 MB Notification: Performance of Templates: time 0.006784/0.5286, allocations: 3.423 MB / 0.5889 GB, free: 10.81 MB / 426.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches