Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [: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.0009598/0.0009599, allocations: 178 kB / 8.476 MB, free: 1.855 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.094/1.094, allocations: 205.2 MB / 214.1 MB, free: 5.152 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008217/0.0008217, allocations: 93.91 kB / 262.1 MB, free: 5.184 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.75e-06/5.78e-06, allocations: 4 kB / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05998/0.05999, allocations: 47.58 MB / 362.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2149/0.2749, allocations: 97.46 MB / 460 MB, free: 7.211 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.2751, allocations: 81.08 kB / 460.1 MB, free: 7.199 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.0707/0.3458, allocations: 28.19 MB / 488.3 MB, free: 4.418 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5e-05/0.3459, allocations: 27.98 kB / 488.3 MB, free: 4.391 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00167/0.3476, allocations: 1.157 MB / 489.5 MB, free: 3.254 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.3476, allocations: 12.03 kB / 489.5 MB, free: 3.242 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006739/0.3483, allocations: 197.5 kB / 489.7 MB, free: 3.051 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.3497, allocations: 0.8118 MB / 490.5 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.225e-05/0.3497, allocations: 32 kB / 490.5 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.3499, allocations: 63.91 kB / 490.6 MB, free: 2.277 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009397/0.3508, allocations: 0.5432 MB / 491.1 MB, free: 1.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.352, allocations: 0.7529 MB / 491.9 MB, free: 1.395 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.379e-05/0.352, allocations: 7.906 kB / 491.9 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.216e-05/0.3521, allocations: 0 / 491.9 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.3521, allocations: 31.98 kB / 491.9 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004486/0.3566, allocations: 3.766 MB / 495.7 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.3569, allocations: 184 kB / 495.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004971/0.3574, allocations: 262.8 kB / 496.1 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.61e-05/0.3575, allocations: 4 kB / 496.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.3575, allocations: 37.69 kB / 496.2 MB, free: 13.81 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.633e-06/0.3575, allocations: 0 / 496.2 MB, free: 13.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.001844/0.3594, allocations: 1.132 MB / 497.3 MB, free: 12.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.3594, allocations: 81.55 kB / 497.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006886/0.3601, allocations: 0.598 MB / 498 MB, free: 12.28 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.3601, allocations: 29.7 kB / 498 MB, free: 12.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.3604, allocations: 475.8 kB / 498.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.699e-05/0.3605, allocations: 166.8 kB / 498.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/0.3605, allocations: 3.938 kB / 498.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3606, allocations: 386.4 kB / 499 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.3609, allocations: 138.3 kB / 499.1 MB, free: 11.24 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003591/0.3612, allocations: 431.2 kB / 499.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003185/0.3616, allocations: 214 kB / 499.8 MB, free: 10.63 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.3616, allocations: 4 kB / 499.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001122/0.3627, allocations: 0.6811 MB / 0.4887 GB, free: 10.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.3627, allocations: 4 kB / 0.4887 GB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.3627, allocations: 8 kB / 0.4887 GB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002979/0.3631, allocations: 99.55 kB / 0.4888 GB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.3636, allocations: 166.3 kB / 0.489 GB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/0.3659, allocations: 2.906 MB / 0.4918 GB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005017/0.3664, allocations: 27.89 kB / 0.4919 GB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.3665, allocations: 35.98 kB / 0.4919 GB, free: 6.625 MB / 346.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 (85): * Single equations (assignments): 83 * 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.0001164/0.3666, allocations: 132.9 kB / 0.492 GB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.3667, allocations: 82.97 kB / 0.4921 GB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007825/0.3675, allocations: 457.1 kB / 0.4925 GB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3675, allocations: 4 kB / 0.4925 GB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3676, allocations: 8 kB / 0.4925 GB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.3676, allocations: 3.984 kB / 0.4925 GB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001739/0.3693, allocations: 1.287 MB / 0.4938 GB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3693, allocations: 0 / 0.4938 GB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003692/0.3697, allocations: 84.11 kB / 0.4939 GB, free: 4.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002503/0.37, allocations: 89.61 kB / 0.494 GB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.37, allocations: 4 kB / 0.494 GB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/0.3721, allocations: 2.886 MB / 0.4968 GB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.3722, allocations: 8.125 kB / 0.4968 GB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001015/0.3732, allocations: 0.8283 MB / 0.4976 GB, free: 336 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.3734, allocations: 200.3 kB / 0.4978 GB, free: 116 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.3735, allocations: 4 kB / 0.4978 GB, free: 112 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.374, allocations: 23.98 kB / 0.4978 GB, free: 88 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.908e-05/0.3741, allocations: 39.83 kB / 0.4979 GB, free: 48 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.3741, allocations: 19.94 kB / 0.4979 GB, free: 28 kB / 346.7 MB Notification: Performance of sort global known variables: time 0.0005148/0.3746, allocations: 451.2 kB / 0.4983 GB, free: 15.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007541/0.3754, allocations: 192 kB / 0.4985 GB, free: 15.41 MB / 362.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 (39): * Single equations (assignments): 37 * 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.0003548/0.3758, allocations: 276.8 kB / 0.4988 GB, free: 15.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009018/0.3767, allocations: 0.6348 MB / 0.4994 GB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3767, allocations: 4 kB / 0.4994 GB, free: 14.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005358/0.3772, allocations: 399.4 kB / 0.4998 GB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008089/0.3781, allocations: 175.5 kB / 0.4999 GB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.3803, allocations: 1.262 MB / 0.5012 GB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006792/0.381, allocations: 1.086 MB / 0.5022 GB, free: 11.46 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.381, allocations: 0 / 0.5022 GB, free: 11.46 MB / 362.7 MB Notification: Performance of Templates: time 0.01691/0.398, allocations: 9.48 MB / 0.5115 GB, free: 1.98 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches