Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [: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 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 184.1 kB / 8.138 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.121/1.121, allocations: 221.4 MB / 229.9 MB, free: 3.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008934/0.0008933, allocations: 97.3 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.805e-06/7.825e-06, allocations: 4 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1795, allocations: 50.39 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09863/0.2782, allocations: 98.55 MB / 485.5 MB, free: 4.246 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.2785, allocations: 86.17 kB / 485.5 MB, free: 4.164 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2016/0.4801, allocations: 27.02 MB / 0.5006 GB, free: 94.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.222e-05/0.4801, allocations: 26.28 kB / 0.5006 GB, free: 94.29 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001384/0.4815, allocations: 1.165 MB / 0.5017 GB, free: 93.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.4816, allocations: 9.344 kB / 0.5017 GB, free: 93.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005881/0.4822, allocations: 195.7 kB / 0.5019 GB, free: 93.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.4835, allocations: 0.8441 MB / 0.5027 GB, free: 93.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.4835, allocations: 31.56 kB / 0.5028 GB, free: 93.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.986e-05/0.4836, allocations: 60.62 kB / 0.5028 GB, free: 93.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008646/0.4845, allocations: 0.5272 MB / 0.5033 GB, free: 93.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.4856, allocations: 0.7704 MB / 0.5041 GB, free: 93.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/0.4856, allocations: 0 / 0.5041 GB, free: 93.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.033e-05/0.4857, allocations: 2.75 kB / 0.5041 GB, free: 93.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.4857, allocations: 31.02 kB / 0.5041 GB, free: 93.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003926/0.4897, allocations: 3.975 MB / 0.508 GB, free: 91.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000546/0.4902, allocations: 231.3 kB / 0.5082 GB, free: 91.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.4904, allocations: 136.2 kB / 0.5084 GB, free: 91.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.4904, allocations: 13.19 kB / 0.5084 GB, free: 91.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.4905, allocations: 37 kB / 0.5084 GB, free: 90.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.693e-06/0.4905, allocations: 2.312 kB / 0.5084 GB, free: 90.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001352/0.4918, allocations: 0.9824 MB / 0.5094 GB, free: 90.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.4919, allocations: 83.42 kB / 0.5094 GB, free: 90.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006649/0.4925, allocations: 0.6311 MB / 0.5101 GB, free: 89.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.4926, allocations: 25.7 kB / 0.5101 GB, free: 89.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.4927, allocations: 496.3 kB / 0.5106 GB, free: 89.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.679e-05/0.4928, allocations: 147.5 kB / 0.5107 GB, free: 89.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.136e-05/0.4928, allocations: 0 / 0.5107 GB, free: 89.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.143e-05/0.4929, allocations: 334.5 kB / 0.511 GB, free: 89.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.4931, allocations: 134 kB / 0.5111 GB, free: 89.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.4934, allocations: 444.2 kB / 0.5116 GB, free: 88.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002698/0.4937, allocations: 210.9 kB / 0.5118 GB, free: 88.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-06/0.4937, allocations: 3.906 kB / 0.5118 GB, free: 88.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.000798/0.4945, allocations: 0.6205 MB / 0.5124 GB, free: 88.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000601/0.4951, allocations: 4.073 MB / 0.5164 GB, free: 83.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.4951, allocations: 11.28 kB / 0.5164 GB, free: 83.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001392/0.4952, allocations: 40.17 kB / 0.5164 GB, free: 83.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005732/0.4958, allocations: 176 kB / 0.5166 GB, free: 83.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006486/0.4965, allocations: 1.231 MB / 0.5178 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/0.497, allocations: 25.53 kB / 0.5178 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.829e-05/0.497, allocations: 35.47 kB / 0.5178 GB, free: 82.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.809e-06/0.497, allocations: 3.938 kB / 0.5178 GB, free: 82.54 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000655/0.4977, allocations: 497.2 kB / 0.5183 GB, free: 82.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.4977, allocations: 9.719 kB / 0.5183 GB, free: 82.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.768e-05/0.4978, allocations: 43.86 kB / 0.5184 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005151/0.4983, allocations: 170.9 kB / 0.5185 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005405/0.4989, allocations: 1.234 MB / 0.5197 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004343/0.4993, allocations: 19.11 kB / 0.5198 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.4994, allocations: 35.16 kB / 0.5198 GB, free: 81.08 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.4995, allocations: 136.6 kB / 0.5199 GB, free: 80.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.808e-05/0.4996, allocations: 86.28 kB / 0.52 GB, free: 80.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005553/0.5002, allocations: 352.2 kB / 0.5203 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.5002, allocations: 3.969 kB / 0.5203 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.5002, allocations: 3.875 kB / 0.5203 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.5002, allocations: 3.797 kB / 0.5203 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.5015, allocations: 1.138 MB / 0.5215 GB, free: 80.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.5015, allocations: 11.34 kB / 0.5215 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003696/0.5019, allocations: 80.39 kB / 0.5215 GB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.253e-05/0.502, allocations: 28.33 kB / 0.5216 GB, free: 80.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.408e-05/0.502, allocations: 3.844 kB / 0.5216 GB, free: 80.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005733/0.5026, allocations: 1.225 MB / 0.5228 GB, free: 78.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5026, allocations: 3.906 kB / 0.5228 GB, free: 78.82 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006901/0.5033, allocations: 0.7094 MB / 0.5235 GB, free: 78.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.5035, allocations: 190.4 kB / 0.5237 GB, free: 78.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.5036, allocations: 3.844 kB / 0.5237 GB, free: 78.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.504, allocations: 15.3 kB / 0.5237 GB, free: 78.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.5041, allocations: 26.69 kB / 0.5237 GB, free: 78.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.5041, allocations: 15.23 kB / 0.5237 GB, free: 78.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004562/0.5046, allocations: 480.6 kB / 0.5242 GB, free: 77.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001091/0.5056, allocations: 313.6 kB / 0.5245 GB, free: 77.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003784/0.506, allocations: 269.6 kB / 0.5247 GB, free: 77.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.5073, allocations: 0.8735 MB / 0.5256 GB, free: 77.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5074, allocations: 0 / 0.5256 GB, free: 77.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.5076, allocations: 258.3 kB / 0.5258 GB, free: 77.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000862/0.5085, allocations: 193.7 kB / 0.526 GB, free: 77.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.5108, allocations: 1.327 MB / 0.5273 GB, free: 76.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00055/0.5113, allocations: 1.12 MB / 0.5284 GB, free: 75.48 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5113, allocations: 0 / 0.5284 GB, free: 75.48 MB / 378.7 MB Notification: Performance of Templates: time 0.0187/0.5301, allocations: 12.2 MB / 0.5403 GB, free: 66.04 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches