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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001555/0.001555, allocations: 181.7 kB / 8.133 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.113/1.113, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0009455/0.0009454, allocations: 96.94 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2032/0.2032, allocations: 37.97 MB / 347.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.47e-06/5.49e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08424/0.08426, allocations: 56.31 MB / 466.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2524/0.3367, allocations: 98.74 MB / 0.5518 GB, free: 11.83 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.337, allocations: 87.95 kB / 0.5519 GB, free: 11.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02944/0.3664, allocations: 11 MB / 0.5626 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.351e-05/0.3665, allocations: 12 kB / 0.5627 GB, free: 0.6055 MB / 394.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.0009443/0.3674, allocations: 0.6252 MB / 0.5633 GB, free: 15.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.3675, allocations: 8.031 kB / 0.5633 GB, free: 15.92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.3676, allocations: 51.44 kB / 0.5633 GB, free: 15.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.3686, allocations: 0.5528 MB / 0.5639 GB, free: 15.28 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.736e-05/0.3687, allocations: 46.42 kB / 0.5639 GB, free: 15.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.96e-05/0.3688, allocations: 23.91 kB / 0.5639 GB, free: 15.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003959/0.3692, allocations: 229.5 kB / 0.5642 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005226/0.3697, allocations: 381.6 kB / 0.5645 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.3697, allocations: 0 / 0.5645 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.3698, allocations: 0 / 0.5645 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.3698, allocations: 12 kB / 0.5645 GB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/0.3717, allocations: 1.779 MB / 0.5663 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.3719, allocations: 127.5 kB / 0.5664 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.446e-05/0.372, allocations: 74.56 kB / 0.5665 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.372, allocations: 0 / 0.5665 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.3721, allocations: 38.56 kB / 0.5665 GB, free: 12.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=18): time 1.082e-06/0.3721, allocations: 0 / 0.5665 GB, free: 12.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008704/0.373, allocations: 0.6091 MB / 0.5671 GB, free: 11.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.373, allocations: 106.8 kB / 0.5672 GB, free: 11.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.3732, allocations: 239.4 kB / 0.5674 GB, free: 11.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.3733, allocations: 25.7 kB / 0.5674 GB, free: 11.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3734, allocations: 215.5 kB / 0.5677 GB, free: 11.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.718e-05/0.3734, allocations: 71 kB / 0.5677 GB, free: 11.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.3735, allocations: 0 / 0.5677 GB, free: 11.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3736, allocations: 338.9 kB / 0.568 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.3737, allocations: 60.66 kB / 0.5681 GB, free: 10.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.3739, allocations: 189.4 kB / 0.5683 GB, free: 10.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.374, allocations: 99.27 kB / 0.5684 GB, free: 10.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.374, allocations: 4 kB / 0.5684 GB, free: 10.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004157/0.3744, allocations: 275.8 kB / 0.5686 GB, free: 10.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.407e-06/0.3745, allocations: 4 kB / 0.5686 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3745, allocations: 8 kB / 0.5687 GB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3745, allocations: 8 kB / 0.5687 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003233/0.3748, allocations: 84.33 kB / 0.5687 GB, free: 9.918 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.3749, allocations: 15.91 kB / 0.5688 GB, free: 9.902 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.375, allocations: 4 kB / 0.5688 GB, free: 9.898 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.3751, allocations: 16 kB / 0.5688 GB, free: 9.883 MB / 410.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 () * 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.0001005/0.3752, allocations: 124.7 kB / 0.5689 GB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.162e-05/0.3752, allocations: 31.62 kB / 0.5689 GB, free: 9.723 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002893/0.3755, allocations: 167.6 kB / 0.5691 GB, free: 9.551 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.3756, allocations: 0 / 0.5691 GB, free: 9.551 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3756, allocations: 8 kB / 0.5691 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3756, allocations: 0 / 0.5691 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006948/0.3763, allocations: 0.5506 MB / 0.5696 GB, free: 8.945 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3763, allocations: 7.922 kB / 0.5696 GB, free: 8.938 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.3766, allocations: 39.92 kB / 0.5697 GB, free: 8.898 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.3766, allocations: 4 kB / 0.5697 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.3766, allocations: 7.953 kB / 0.5697 GB, free: 8.887 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.3766, allocations: 8 kB / 0.5697 GB, free: 8.879 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3766, allocations: 0 / 0.5697 GB, free: 8.879 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004296/0.3771, allocations: 460.9 kB / 0.5701 GB, free: 8.387 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.404e-05/0.3771, allocations: 104.7 kB / 0.5702 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.565e-05/0.3772, allocations: 4 kB / 0.5702 GB, free: 8.262 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.3774, allocations: 7.984 kB / 0.5702 GB, free: 8.254 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.679e-05/0.3775, allocations: 15.97 kB / 0.5703 GB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.3775, allocations: 8 kB / 0.5703 GB, free: 8.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001575/0.3776, allocations: 179.1 kB / 0.5704 GB, free: 8.055 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003906/0.378, allocations: 72 kB / 0.5705 GB, free: 7.984 MB / 410.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 () * 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.0001592/0.3782, allocations: 115.2 kB / 0.5706 GB, free: 7.863 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003141/0.3785, allocations: 171.8 kB / 0.5708 GB, free: 7.695 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3785, allocations: 3.938 kB / 0.5708 GB, free: 7.691 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.3787, allocations: 75.92 kB / 0.5709 GB, free: 7.617 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.3791, allocations: 61.86 kB / 0.5709 GB, free: 7.559 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.3803, allocations: 0.6641 MB / 0.5716 GB, free: 6.863 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005124/0.3809, allocations: 0.8528 MB / 0.5724 GB, free: 5.984 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3809, allocations: 0 / 0.5724 GB, free: 5.984 MB / 410.7 MB Notification: Performance of Templates: time 0.007065/0.3879, allocations: 3.109 MB / 0.5754 GB, free: 2.887 MB / 410.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