Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.0015/0.0015, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.168/1.168, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008409/0.000841, allocations: 92.12 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.232e-06/6.262e-06, allocations: 0 / 343.1 MB, free: 8.754 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08255/0.08257, allocations: 51.47 MB / 394.6 MB, free: 5.23 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2273/0.3099, allocations: 99.57 MB / 494.2 MB, free: 10.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.3101, allocations: 81.25 kB / 494.3 MB, free: 10.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.07243/0.3826, allocations: 28.35 MB / 0.5104 GB, free: 2.867 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.879e-05/0.3826, allocations: 24 kB / 0.5104 GB, free: 2.844 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.001728/0.3844, allocations: 1.163 MB / 0.5115 GB, free: 1.633 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3844, allocations: 8.031 kB / 0.5115 GB, free: 1.625 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007704/0.3852, allocations: 206.3 kB / 0.5117 GB, free: 1.422 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/0.3866, allocations: 0.8166 MB / 0.5125 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.3867, allocations: 32 kB / 0.5126 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.3868, allocations: 59.91 kB / 0.5126 GB, free: 484 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001022/0.3878, allocations: 0.539 MB / 0.5131 GB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.3891, allocations: 0.7591 MB / 0.5139 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.493e-05/0.3892, allocations: 8.547 kB / 0.5139 GB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.336e-05/0.3893, allocations: 7.984 kB / 0.5139 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.3893, allocations: 24 kB / 0.5139 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004893/0.3942, allocations: 3.766 MB / 0.5176 GB, free: 11.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.3945, allocations: 192.8 kB / 0.5178 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005388/0.3951, allocations: 263.8 kB / 0.518 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.823e-05/0.3951, allocations: 4 kB / 0.518 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.3951, allocations: 42.5 kB / 0.5181 GB, free: 10.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.425e-06/0.3952, allocations: 4 kB / 0.5181 GB, free: 10.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.002034/0.3972, allocations: 1.12 MB / 0.5192 GB, free: 9.461 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.3973, allocations: 89.55 kB / 0.5193 GB, free: 9.355 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007923/0.398, allocations: 0.5937 MB / 0.5198 GB, free: 8.754 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.3981, allocations: 25.7 kB / 0.5199 GB, free: 8.723 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.3983, allocations: 473.8 kB / 0.5203 GB, free: 8.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.3985, allocations: 169.5 kB / 0.5205 GB, free: 8.082 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.144e-05/0.3985, allocations: 0 / 0.5205 GB, free: 8.082 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3986, allocations: 382.8 kB / 0.5208 GB, free: 7.699 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.3989, allocations: 149.6 kB / 0.521 GB, free: 7.555 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.3993, allocations: 424.4 kB / 0.5214 GB, free: 7.008 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.3996, allocations: 224.6 kB / 0.5216 GB, free: 6.785 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3997, allocations: 0 / 0.5216 GB, free: 6.785 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001099/0.4008, allocations: 0.6796 MB / 0.5223 GB, free: 6.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.4008, allocations: 8 kB / 0.5223 GB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.4008, allocations: 8 kB / 0.5223 GB, free: 6.074 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002917/0.4011, allocations: 97.95 kB / 0.5224 GB, free: 5.973 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005857/0.4017, allocations: 163.7 kB / 0.5225 GB, free: 5.812 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002389/0.4041, allocations: 2.907 MB / 0.5254 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005212/0.4046, allocations: 31.95 kB / 0.5254 GB, free: 2.645 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.4047, allocations: 40.03 kB / 0.5254 GB, free: 2.605 MB / 394.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.0001154/0.4048, allocations: 124.7 kB / 0.5256 GB, free: 2.477 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.4049, allocations: 82.97 kB / 0.5256 GB, free: 2.395 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008333/0.4058, allocations: 461.2 kB / 0.5261 GB, free: 1.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.4058, allocations: 7.938 kB / 0.5261 GB, free: 1.922 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.4058, allocations: 0 / 0.5261 GB, free: 1.922 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.4058, allocations: 3.984 kB / 0.5261 GB, free: 1.918 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.4077, allocations: 1.287 MB / 0.5274 GB, free: 0.5547 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.4077, allocations: 4 kB / 0.5274 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003749/0.408, allocations: 83.83 kB / 0.5274 GB, free: 480 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002577/0.4083, allocations: 89.89 kB / 0.5275 GB, free: 384 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.4084, allocations: 4 kB / 0.5275 GB, free: 380 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00228/0.4106, allocations: 2.886 MB / 0.5303 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4107, allocations: 4.125 kB / 0.5303 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001051/0.4117, allocations: 0.832 MB / 0.5312 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002432/0.412, allocations: 199.9 kB / 0.5314 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.4121, allocations: 0 / 0.5314 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004534/0.4126, allocations: 27.98 kB / 0.5314 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.672e-05/0.4126, allocations: 28.05 kB / 0.5314 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.98e-05/0.4127, allocations: 16 kB / 0.5314 GB, free: 12.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0005331/0.4132, allocations: 455.2 kB / 0.5319 GB, free: 11.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008152/0.414, allocations: 208 kB / 0.5321 GB, free: 11.39 MB / 410.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.0003507/0.4144, allocations: 266.5 kB / 0.5323 GB, free: 11.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009442/0.4153, allocations: 0.634 MB / 0.5329 GB, free: 10.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.4154, allocations: 4 kB / 0.5329 GB, free: 10.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005652/0.4159, allocations: 415.7 kB / 0.5333 GB, free: 10.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008106/0.4168, allocations: 175.7 kB / 0.5335 GB, free: 9.891 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.4191, allocations: 1.262 MB / 0.5347 GB, free: 8.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006915/0.4198, allocations: 1.097 MB / 0.5358 GB, free: 7.445 MB / 410.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4198, allocations: 0 / 0.5358 GB, free: 7.445 MB / 410.7 MB Notification: Performance of Templates: time 0.01727/0.4371, allocations: 9.462 MB / 0.545 GB, free: 14.1 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches