Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,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_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009732/0.0009733, allocations: 183.6 kB / 8.136 MB, free: 2.074 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.144/1.144, allocations: 221.4 MB / 230 MB, free: 3.066 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.0009139/0.000914, allocations: 96.39 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.771e-06/5.791e-06, allocations: 0 / 336.5 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1774, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09995/0.2774, allocations: 98.76 MB / 485.7 MB, free: 3.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.2777, allocations: 81.52 kB / 485.8 MB, free: 3.902 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1968/0.4744, allocations: 28.26 MB / 0.502 GB, free: 95.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.27e-05/0.4745, allocations: 23.81 kB / 0.502 GB, free: 95.07 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001657/0.4762, allocations: 1.158 MB / 0.5031 GB, free: 94.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.4762, allocations: 8.375 kB / 0.5031 GB, free: 94.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006828/0.4769, allocations: 199.4 kB / 0.5033 GB, free: 94.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.4782, allocations: 0.8114 MB / 0.5041 GB, free: 94.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.4783, allocations: 31.25 kB / 0.5041 GB, free: 94.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.4784, allocations: 69.09 kB / 0.5042 GB, free: 94.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009269/0.4793, allocations: 0.537 MB / 0.5047 GB, free: 94.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.4805, allocations: 0.7589 MB / 0.5055 GB, free: 93.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.4805, allocations: 0 / 0.5055 GB, free: 93.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.844e-05/0.4806, allocations: 0 / 0.5055 GB, free: 93.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.4806, allocations: 27.62 kB / 0.5055 GB, free: 93.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004013/0.4846, allocations: 3.782 MB / 0.5092 GB, free: 91.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002476/0.4849, allocations: 189.1 kB / 0.5094 GB, free: 91.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004371/0.4853, allocations: 258.4 kB / 0.5096 GB, free: 91.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.4854, allocations: 11.23 kB / 0.5096 GB, free: 91.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.4854, allocations: 38.5 kB / 0.5097 GB, free: 91.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 1.563e-06/0.4854, allocations: 0 / 0.5097 GB, free: 91.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001645/0.487, allocations: 1.128 MB / 0.5108 GB, free: 91.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/0.4871, allocations: 83.14 kB / 0.5108 GB, free: 90.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006152/0.4877, allocations: 0.595 MB / 0.5114 GB, free: 90.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.4877, allocations: 29.05 kB / 0.5115 GB, free: 90.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.4879, allocations: 477 kB / 0.5119 GB, free: 90.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.069e-05/0.488, allocations: 170.8 kB / 0.5121 GB, free: 90.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.488, allocations: 0 / 0.5121 GB, free: 90.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.688e-05/0.4881, allocations: 381.8 kB / 0.5124 GB, free: 89.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.4883, allocations: 144.2 kB / 0.5126 GB, free: 89.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.4886, allocations: 436.2 kB / 0.513 GB, free: 89.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000281/0.4889, allocations: 215.2 kB / 0.5132 GB, free: 89.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.4889, allocations: 3.969 kB / 0.5132 GB, free: 89.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009383/0.4898, allocations: 0.6794 MB / 0.5139 GB, free: 88.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.4898, allocations: 7.719 kB / 0.5139 GB, free: 88.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.4898, allocations: 7.781 kB / 0.5139 GB, free: 88.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000263/0.4901, allocations: 101.2 kB / 0.514 GB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005225/0.4906, allocations: 167.2 kB / 0.5141 GB, free: 88.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/0.4924, allocations: 2.905 MB / 0.517 GB, free: 86.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000498/0.493, allocations: 23.27 kB / 0.517 GB, free: 86.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.493, allocations: 38.84 kB / 0.517 GB, free: 86.07 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 (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 9.635e-05/0.4931, allocations: 132.4 kB / 0.5172 GB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.817e-05/0.4932, allocations: 82.06 kB / 0.5172 GB, free: 85.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006958/0.4939, allocations: 460.4 kB / 0.5177 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.4939, allocations: 11.84 kB / 0.5177 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.494, allocations: 0 / 0.5177 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.494, allocations: 3.75 kB / 0.5177 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.4957, allocations: 1.277 MB / 0.5189 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.4957, allocations: 1.656 kB / 0.5189 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004042/0.4961, allocations: 85.27 kB / 0.519 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002721/0.4964, allocations: 86.2 kB / 0.5191 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.4964, allocations: 11.22 kB / 0.5191 GB, free: 84.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001853/0.4983, allocations: 2.888 MB / 0.5219 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.4983, allocations: 2.531 kB / 0.5219 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00093/0.4993, allocations: 0.8352 MB / 0.5227 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.4995, allocations: 189.3 kB / 0.5229 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.4996, allocations: 7.125 kB / 0.5229 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004464/0.5001, allocations: 31.5 kB / 0.523 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.5001, allocations: 24.62 kB / 0.523 GB, free: 81.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.5002, allocations: 18.33 kB / 0.523 GB, free: 81.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004981/0.5007, allocations: 453.6 kB / 0.5234 GB, free: 81.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000768/0.5015, allocations: 196.9 kB / 0.5236 GB, free: 81.21 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 (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.0003235/0.5018, allocations: 277.3 kB / 0.5239 GB, free: 81.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008051/0.5026, allocations: 0.6424 MB / 0.5245 GB, free: 80.42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5026, allocations: 0 / 0.5245 GB, free: 80.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004702/0.5031, allocations: 411.7 kB / 0.5249 GB, free: 80.01 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007899/0.5039, allocations: 176.1 kB / 0.5251 GB, free: 79.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.5061, allocations: 1.258 MB / 0.5263 GB, free: 78.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005368/0.5066, allocations: 1.088 MB / 0.5274 GB, free: 77.71 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.5066, allocations: 0 / 0.5274 GB, free: 77.71 MB / 378.7 MB Notification: Performance of Templates: time 0.01576/0.5224, allocations: 9.478 MB / 0.5366 GB, free: 70.14 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches