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.0009645/0.0009648, allocations: 180.6 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.309/1.309, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0009237/0.0009235, allocations: 95.27 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.172/0.172, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003515, allocations: 12 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3081, allocations: 56.31 MB / 480.3 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1386/0.4467, allocations: 99.53 MB / 0.5662 GB, free: 2.895 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/0.447, allocations: 99.94 kB / 0.5663 GB, free: 2.797 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02955/0.4766, allocations: 11.4 MB / 0.5775 GB, free: 7.246 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.4766, allocations: 0 / 0.5775 GB, free: 7.246 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.674e-05/0.4766, allocations: 16.38 kB / 0.5775 GB, free: 7.23 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.001084/0.4777, allocations: 0.6683 MB / 0.5781 GB, free: 6.516 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4778, allocations: 12.03 kB / 0.5782 GB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/0.4779, allocations: 43.48 kB / 0.5782 GB, free: 6.461 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.479, allocations: 0.5735 MB / 0.5788 GB, free: 5.844 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.138e-05/0.4791, allocations: 58.7 kB / 0.5788 GB, free: 5.781 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.046e-05/0.4792, allocations: 35.91 kB / 0.5789 GB, free: 5.746 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006709/0.4799, allocations: 433.8 kB / 0.5793 GB, free: 5.273 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.4799, allocations: 4 kB / 0.5793 GB, free: 5.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/0.4799, allocations: 16 kB / 0.5793 GB, free: 5.254 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.48, allocations: 12 kB / 0.5793 GB, free: 5.242 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004911/0.4805, allocations: 277.9 kB / 0.5796 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.4827, allocations: 1.872 MB / 0.5814 GB, free: 2.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.4831, allocations: 195.6 kB / 0.5816 GB, free: 2.762 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.4831, allocations: 0 / 0.5816 GB, free: 2.762 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.4832, allocations: 42.56 kB / 0.5816 GB, free: 2.711 MB / 410.7 MB Notification: Performance of pre-optimization done (n=18): time 1.403e-06/0.4832, allocations: 0 / 0.5816 GB, free: 2.711 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001339/0.4845, allocations: 0.7293 MB / 0.5823 GB, free: 1.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.4846, allocations: 106.8 kB / 0.5824 GB, free: 1.801 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.4849, allocations: 267.7 kB / 0.5827 GB, free: 1.535 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.4849, allocations: 29.86 kB / 0.5827 GB, free: 1.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.4851, allocations: 247.5 kB / 0.5829 GB, free: 1.254 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.491e-05/0.4852, allocations: 71 kB / 0.583 GB, free: 1.184 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.319e-05/0.4852, allocations: 8 kB / 0.583 GB, free: 1.176 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4853, allocations: 342.8 kB / 0.5834 GB, free: 0.832 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.4855, allocations: 68.62 kB / 0.5834 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.4857, allocations: 209.6 kB / 0.5836 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.4859, allocations: 108.9 kB / 0.5837 GB, free: 400 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.486, allocations: 0 / 0.5837 GB, free: 400 kB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005109/0.4865, allocations: 343.8 kB / 0.584 GB, free: 52 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.4865, allocations: 7.953 kB / 0.5841 GB, free: 44 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.4865, allocations: 7.938 kB / 0.5841 GB, free: 36 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.4865, allocations: 8 kB / 0.5841 GB, free: 28 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.4869, allocations: 75.84 kB / 0.5841 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.4869, allocations: 11.98 kB / 0.5842 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/0.4871, allocations: 16.31 kB / 0.5842 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.4871, allocations: 16 kB / 0.5842 GB, free: 15.91 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.0001842/0.4873, allocations: 185.6 kB / 0.5844 GB, free: 15.72 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.546e-05/0.4873, allocations: 31.62 kB / 0.5844 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003963/0.4878, allocations: 204.7 kB / 0.5846 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.4878, allocations: 4 kB / 0.5846 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.4878, allocations: 0 / 0.5846 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.4878, allocations: 7.984 kB / 0.5846 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000926/0.4887, allocations: 0.6259 MB / 0.5852 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4887, allocations: 0 / 0.5852 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/0.489, allocations: 51.94 kB / 0.5853 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.489, allocations: 4 kB / 0.5853 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.489, allocations: 7.938 kB / 0.5853 GB, free: 14.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.489, allocations: 0 / 0.5853 GB, free: 14.72 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.489, allocations: 0 / 0.5853 GB, free: 14.72 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006012/0.4896, allocations: 0.497 MB / 0.5858 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.294e-05/0.4897, allocations: 104.8 kB / 0.5859 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.15e-05/0.4898, allocations: 4 kB / 0.5859 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.49, allocations: 8 kB / 0.5859 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.49, allocations: 23.92 kB / 0.5859 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.4901, allocations: 4 kB / 0.5859 GB, free: 14.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002182/0.4903, allocations: 215.1 kB / 0.5861 GB, free: 13.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4903, allocations: 0 / 0.5861 GB, free: 13.81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004277/0.4907, allocations: 79.94 kB / 0.5862 GB, free: 13.73 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.0002016/0.4909, allocations: 123.2 kB / 0.5863 GB, free: 13.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004197/0.4914, allocations: 200.4 kB / 0.5865 GB, free: 13.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4914, allocations: 0 / 0.5865 GB, free: 13.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.4915, allocations: 83.84 kB / 0.5866 GB, free: 13.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005154/0.4921, allocations: 93.94 kB / 0.5867 GB, free: 13.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.4937, allocations: 1.117 MB / 0.5877 GB, free: 12.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.4942, allocations: 0.8304 MB / 0.5886 GB, free: 11.21 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002128/0.4944, allocations: 47.27 kB / 0.5886 GB, free: 11.17 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.487e-05/0.4945, allocations: 27.44 kB / 0.5886 GB, free: 11.14 MB / 426.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4945, allocations: 7.938 kB / 0.5886 GB, free: 11.14 MB / 426.7 MB Notification: Performance of Templates: time 0.00722/0.5017, allocations: 3.426 MB / 0.592 GB, free: 7.727 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/jenkins/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