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") [: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.001086/0.001086, allocations: 190 kB / 8.138 MB, free: 2.223 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.177/1.177, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0008774/0.0008773, allocations: 90.16 kB / 261.7 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1793/0.1793, allocations: 37.97 MB / 347.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.822e-06/6.923e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1006, allocations: 56.32 MB / 466.3 MB, free: 6.477 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3013/0.402, allocations: 96.92 MB / 0.55 GB, free: 13.66 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.4023, allocations: 87.95 kB / 0.5501 GB, free: 13.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02801/0.4304, allocations: 9.535 MB / 0.5594 GB, free: 3.945 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.419e-05/0.4304, allocations: 11.92 kB / 0.5594 GB, free: 3.934 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001069/0.4315, allocations: 0.5788 MB / 0.56 GB, free: 3.312 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.4316, allocations: 12.02 kB / 0.56 GB, free: 3.301 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.4317, allocations: 39.53 kB / 0.5601 GB, free: 3.262 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001467/0.4332, allocations: 0.6161 MB / 0.5607 GB, free: 2.609 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.4332, allocations: 8 kB / 0.5607 GB, free: 2.602 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.485e-05/0.4333, allocations: 16 kB / 0.5607 GB, free: 2.586 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000378/0.4337, allocations: 173.2 kB / 0.5609 GB, free: 2.414 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/0.4341, allocations: 299 kB / 0.5611 GB, free: 2.082 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.4341, allocations: 3.906 kB / 0.5611 GB, free: 2.078 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.4342, allocations: 4 kB / 0.5611 GB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.4342, allocations: 12 kB / 0.5612 GB, free: 2.062 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.4358, allocations: 1.428 MB / 0.5626 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001976/0.436, allocations: 141.6 kB / 0.5627 GB, free: 388 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.4362, allocations: 71.98 kB / 0.5628 GB, free: 304 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.4362, allocations: 4 kB / 0.5628 GB, free: 300 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.4362, allocations: 34.5 kB / 0.5628 GB, free: 256 kB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 1.864e-06/0.4362, allocations: 4 kB / 0.5628 GB, free: 252 kB / 394.7 MB Notification: Performance of matching and sorting (n=18): time 0.001066/0.4373, allocations: 0.6066 MB / 0.5634 GB, free: 15.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.4374, allocations: 140.4 kB / 0.5635 GB, free: 15.42 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.4376, allocations: 227.6 kB / 0.5637 GB, free: 15.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.4377, allocations: 25.7 kB / 0.5638 GB, free: 15.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.4378, allocations: 183.9 kB / 0.5639 GB, free: 14.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.128e-05/0.4378, allocations: 67.09 kB / 0.564 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-06/0.4379, allocations: 0 / 0.564 GB, free: 14.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.438, allocations: 338.8 kB / 0.5643 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.243e-05/0.4381, allocations: 43.98 kB / 0.5644 GB, free: 14.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.4382, allocations: 148.8 kB / 0.5645 GB, free: 14.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.4384, allocations: 67.91 kB / 0.5646 GB, free: 14.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.4384, allocations: 3.906 kB / 0.5646 GB, free: 14.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003568/0.4387, allocations: 217.3 kB / 0.5648 GB, free: 14.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.4388, allocations: 10.34 kB / 0.5648 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.4388, allocations: 4 kB / 0.5648 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.4388, allocations: 4 kB / 0.5648 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004222/0.4392, allocations: 79.89 kB / 0.5649 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.4403, allocations: 1.238 MB / 0.5661 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.4405, allocations: 4 kB / 0.5661 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.4405, allocations: 12 kB / 0.5661 GB, free: 12.58 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 () * 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.000124/0.4406, allocations: 117.1 kB / 0.5662 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.4407, allocations: 31.62 kB / 0.5662 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000299/0.441, allocations: 164.8 kB / 0.5664 GB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.4411, allocations: 4 kB / 0.5664 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.4411, allocations: 3.906 kB / 0.5664 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.158e-06/0.4411, allocations: 7.984 kB / 0.5664 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000713/0.4418, allocations: 495.2 kB / 0.5669 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.4418, allocations: 3.938 kB / 0.5669 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002562/0.4421, allocations: 43.97 kB / 0.5669 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.4421, allocations: 7.984 kB / 0.5669 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.4421, allocations: 0 / 0.5669 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.4421, allocations: 4 kB / 0.5669 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4421, allocations: 0 / 0.5669 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004994/0.4426, allocations: 0.5034 MB / 0.5674 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.734e-05/0.4427, allocations: 100.7 kB / 0.5675 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.848e-05/0.4428, allocations: 0 / 0.5675 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.443, allocations: 4 kB / 0.5675 GB, free: 10.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.624e-05/0.4431, allocations: 15.98 kB / 0.5676 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.4431, allocations: 4 kB / 0.5676 GB, free: 10.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001633/0.4432, allocations: 183.1 kB / 0.5677 GB, free: 10.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004211/0.4437, allocations: 52 kB / 0.5678 GB, free: 10.75 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 () * 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.0002058/0.4439, allocations: 136 kB / 0.5679 GB, free: 10.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003163/0.4442, allocations: 144.4 kB / 0.5681 GB, free: 10.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4442, allocations: 4.25 kB / 0.5681 GB, free: 10.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.871e-05/0.4443, allocations: 67.86 kB / 0.5681 GB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005105/0.4449, allocations: 61.05 kB / 0.5682 GB, free: 10.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.4461, allocations: 0.5645 MB / 0.5687 GB, free: 9.734 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005118/0.4466, allocations: 0.8375 MB / 0.5695 GB, free: 8.867 MB / 410.7 MB Notification: Performance of SimCode: time 3.186e-06/0.4466, allocations: 0 / 0.5695 GB, free: 8.867 MB / 410.7 MB Notification: Performance of Templates: time 0.007112/0.4537, allocations: 2.863 MB / 0.5723 GB, free: 6.012 MB / 410.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