Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [: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.001425/0.001425, allocations: 180.8 kB / 8.132 MB, free: 2.23 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.228/1.228, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.000868/0.000868, allocations: 100.8 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.855e-06, allocations: 4 kB / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1723, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0971/0.2695, allocations: 97.85 MB / 484.8 MB, free: 4.938 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.2697, allocations: 88.47 kB / 484.9 MB, free: 4.852 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1885/0.4582, allocations: 27.73 MB / 0.5006 GB, free: 95.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.495e-05/0.4583, allocations: 24.44 kB / 0.5006 GB, free: 95.4 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001385/0.4597, allocations: 1.127 MB / 0.5017 GB, free: 94.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.4597, allocations: 11 kB / 0.5017 GB, free: 94.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006368/0.4604, allocations: 194.3 kB / 0.5019 GB, free: 94.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.4616, allocations: 0.798 MB / 0.5027 GB, free: 94.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.4616, allocations: 29.16 kB / 0.5027 GB, free: 94.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.4617, allocations: 67.64 kB / 0.5028 GB, free: 94.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008669/0.4626, allocations: 0.5325 MB / 0.5033 GB, free: 94.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.4637, allocations: 0.7567 MB / 0.504 GB, free: 94.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.4637, allocations: 2.906 kB / 0.504 GB, free: 94.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.205e-05/0.4638, allocations: 0 / 0.504 GB, free: 94.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.716e-05/0.4638, allocations: 23.31 kB / 0.504 GB, free: 94.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003873/0.4677, allocations: 3.742 MB / 0.5077 GB, free: 92.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002469/0.468, allocations: 188.7 kB / 0.5079 GB, free: 92.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004348/0.4684, allocations: 257.5 kB / 0.5081 GB, free: 92.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/0.4685, allocations: 3.375 kB / 0.5081 GB, free: 92.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.4685, allocations: 40.97 kB / 0.5082 GB, free: 92.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.653e-06/0.4685, allocations: 0 / 0.5082 GB, free: 92.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.001631/0.4701, allocations: 1.108 MB / 0.5092 GB, free: 91.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.252e-05/0.4702, allocations: 89.2 kB / 0.5093 GB, free: 91.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005816/0.4708, allocations: 0.5711 MB / 0.5099 GB, free: 91.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.4708, allocations: 25.7 kB / 0.5099 GB, free: 91.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.4709, allocations: 479.2 kB / 0.5104 GB, free: 90.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.865e-05/0.471, allocations: 163.6 kB / 0.5105 GB, free: 90.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.08e-05/0.471, allocations: 0 / 0.5105 GB, free: 90.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.263e-05/0.4711, allocations: 385.3 kB / 0.5109 GB, free: 90.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.4713, allocations: 141.2 kB / 0.511 GB, free: 90.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000272/0.4716, allocations: 423.7 kB / 0.5114 GB, free: 89.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.4719, allocations: 218.2 kB / 0.5116 GB, free: 89.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4719, allocations: 6.844 kB / 0.5116 GB, free: 89.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0009138/0.4728, allocations: 0.6641 MB / 0.5123 GB, free: 89.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.4728, allocations: 8 kB / 0.5123 GB, free: 89.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.4729, allocations: 7.844 kB / 0.5123 GB, free: 89.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/0.4731, allocations: 113.1 kB / 0.5124 GB, free: 89.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005423/0.4737, allocations: 158.4 kB / 0.5126 GB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002047/0.4757, allocations: 2.888 MB / 0.5154 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006273/0.4764, allocations: 26.31 kB / 0.5154 GB, free: 86.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.226e-05/0.4765, allocations: 38.69 kB / 0.5155 GB, free: 86.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001097/0.4766, allocations: 124.7 kB / 0.5156 GB, free: 86.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.503e-05/0.4767, allocations: 82.31 kB / 0.5157 GB, free: 86.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007593/0.4774, allocations: 451.7 kB / 0.5161 GB, free: 86.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4775, allocations: 5 kB / 0.5161 GB, free: 86.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4775, allocations: 3.969 kB / 0.5161 GB, free: 86.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4775, allocations: 3.281 kB / 0.5161 GB, free: 86.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.479, allocations: 1.264 MB / 0.5173 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.479, allocations: 3.969 kB / 0.5173 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.4793, allocations: 72.12 kB / 0.5174 GB, free: 85.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002367/0.4796, allocations: 91.78 kB / 0.5175 GB, free: 85.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.4796, allocations: 7.875 kB / 0.5175 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001714/0.4813, allocations: 2.888 MB / 0.5203 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.4814, allocations: 1.906 kB / 0.5203 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001151/0.4825, allocations: 0.8089 MB / 0.5211 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.4828, allocations: 186.8 kB / 0.5213 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.4829, allocations: 3.281 kB / 0.5213 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004364/0.4833, allocations: 28.47 kB / 0.5213 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.363e-05/0.4834, allocations: 30.88 kB / 0.5213 GB, free: 82.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.4835, allocations: 16.75 kB / 0.5214 GB, free: 82.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005563/0.484, allocations: 445.2 kB / 0.5218 GB, free: 81.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008199/0.4848, allocations: 188 kB / 0.522 GB, free: 81.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003174/0.4852, allocations: 252.3 kB / 0.5222 GB, free: 81.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009187/0.4861, allocations: 0.6378 MB / 0.5228 GB, free: 81.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4861, allocations: 0 / 0.5228 GB, free: 81.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004892/0.4866, allocations: 407.6 kB / 0.5232 GB, free: 81.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008226/0.4875, allocations: 165.9 kB / 0.5234 GB, free: 81.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002229/0.4897, allocations: 1.24 MB / 0.5246 GB, free: 80.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000473/0.4902, allocations: 1.081 MB / 0.5256 GB, free: 79.1 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4902, allocations: 4 kB / 0.5256 GB, free: 79.09 MB / 378.7 MB Notification: Performance of Templates: time 0.01571/0.5059, allocations: 9.298 MB / 0.5347 GB, free: 72.11 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches