Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001175/0.001175, allocations: 176.7 kB / 17.4 MB, free: 4.422 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.451/1.451, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.0007999/0.0008003, allocations: 97.53 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1727/0.1727, allocations: 38.08 MB / 358.3 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003547, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2982, allocations: 56.32 MB / 481.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1407/0.4389, allocations: 99.55 MB / 0.5675 GB, free: 2.688 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002213/0.4392, allocations: 103.8 kB / 0.5676 GB, free: 2.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02961/0.4688, allocations: 11.41 MB / 0.5787 GB, free: 7.035 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4688, allocations: 0 / 0.5787 GB, free: 7.035 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.031e-05/0.4689, allocations: 16.38 kB / 0.5788 GB, free: 7.02 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001255/0.4701, allocations: 0.6646 MB / 0.5794 GB, free: 6.301 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.4702, allocations: 8.031 kB / 0.5794 GB, free: 6.293 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.4703, allocations: 44.47 kB / 0.5795 GB, free: 6.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008321/0.4712, allocations: 471.9 kB / 0.5799 GB, free: 5.746 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.553e-05/0.4713, allocations: 67.25 kB / 0.58 GB, free: 5.676 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.786e-05/0.4714, allocations: 36.38 kB / 0.58 GB, free: 5.641 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007145/0.4721, allocations: 438.4 kB / 0.5804 GB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.625e-05/0.4721, allocations: 11.88 kB / 0.5804 GB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.4722, allocations: 12 kB / 0.5804 GB, free: 5.141 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.4722, allocations: 8 kB / 0.5805 GB, free: 5.133 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005297/0.4727, allocations: 274 kB / 0.5807 GB, free: 4.867 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002424/0.4752, allocations: 1.877 MB / 0.5826 GB, free: 2.867 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/0.4755, allocations: 183.7 kB / 0.5827 GB, free: 2.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.4757, allocations: 77.7 kB / 0.5828 GB, free: 2.578 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.4757, allocations: 7.938 kB / 0.5828 GB, free: 2.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.4758, allocations: 42.5 kB / 0.5828 GB, free: 2.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=18): time 2.385e-06/0.4758, allocations: 0 / 0.5828 GB, free: 2.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001323/0.4771, allocations: 0.7198 MB / 0.5836 GB, free: 1.746 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.4772, allocations: 106.8 kB / 0.5837 GB, free: 1.617 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.4775, allocations: 312.4 kB / 0.584 GB, free: 1.309 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.4775, allocations: 29.7 kB / 0.584 GB, free: 1.273 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.4777, allocations: 243.6 kB / 0.5842 GB, free: 1.031 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.288e-05/0.4778, allocations: 79.05 kB / 0.5843 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.33e-05/0.4778, allocations: 8 kB / 0.5843 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4779, allocations: 342.8 kB / 0.5846 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.4781, allocations: 76.61 kB / 0.5847 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002378/0.4784, allocations: 197.6 kB / 0.5849 GB, free: 280 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/0.4788, allocations: 300.4 kB / 0.5852 GB, free: 15.92 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4788, allocations: 0 / 0.5852 GB, free: 15.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005399/0.4794, allocations: 341.1 kB / 0.5855 GB, free: 15.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.4794, allocations: 8 kB / 0.5855 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.4794, allocations: 4 kB / 0.5855 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.4795, allocations: 4 kB / 0.5855 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.4797, allocations: 75.89 kB / 0.5856 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.4798, allocations: 11.94 kB / 0.5856 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.4799, allocations: 28 kB / 0.5856 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.48, allocations: 16 kB / 0.5856 GB, free: 15.44 MB / 426.7 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): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001913/0.4802, allocations: 181.7 kB / 0.5858 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.013e-05/0.4803, allocations: 39.56 kB / 0.5858 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003829/0.4806, allocations: 200.7 kB / 0.586 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.4807, allocations: 0 / 0.586 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.4807, allocations: 7.984 kB / 0.586 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.4807, allocations: 7.938 kB / 0.5861 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008876/0.4816, allocations: 0.6255 MB / 0.5867 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.4816, allocations: 0 / 0.5867 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.4818, allocations: 47.97 kB / 0.5867 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.4818, allocations: 3.938 kB / 0.5867 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.4819, allocations: 8.031 kB / 0.5867 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.4819, allocations: 3.938 kB / 0.5867 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.4819, allocations: 0 / 0.5867 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006028/0.4825, allocations: 464.5 kB / 0.5872 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.62e-05/0.4826, allocations: 108.7 kB / 0.5873 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/0.4826, allocations: 3.938 kB / 0.5873 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.4828, allocations: 8 kB / 0.5873 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.4829, allocations: 27.98 kB / 0.5873 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.4829, allocations: 4 kB / 0.5873 GB, free: 13.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002113/0.4831, allocations: 215.1 kB / 0.5875 GB, free: 13.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4831, allocations: 4 kB / 0.5875 GB, free: 13.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004236/0.4836, allocations: 76 kB / 0.5876 GB, free: 13.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.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 (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.0002002/0.4838, allocations: 119.2 kB / 0.5877 GB, free: 13.19 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004034/0.4842, allocations: 199.8 kB / 0.5879 GB, free: 12.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4842, allocations: 1.125 kB / 0.5879 GB, free: 12.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.4844, allocations: 84.02 kB / 0.588 GB, free: 12.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006606/0.485, allocations: 93.22 kB / 0.5881 GB, free: 12.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.4867, allocations: 1.124 MB / 0.5892 GB, free: 11.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.4871, allocations: 0.8188 MB / 0.59 GB, free: 10.81 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002357/0.4873, allocations: 51.25 kB / 0.59 GB, free: 10.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.532e-05/0.4874, allocations: 35.38 kB / 0.59 GB, free: 10.72 MB / 426.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4874, allocations: 0 / 0.59 GB, free: 10.72 MB / 426.7 MB Notification: Performance of Templates: time 0.007525/0.4949, allocations: 3.456 MB / 0.5934 GB, free: 7.277 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches