Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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 3.2.3+maint.om/package.mo): time 0.002408/0.002408, allocations: 176 kB / 8.147 MB, free: 2.188 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.744/1.744, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00131/0.00131, allocations: 93.78 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.908e-06/1.022e-05, allocations: 0 / 314.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2414, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1399/0.3814, allocations: 92.46 MB / 454.3 MB, free: 9.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.3818, allocations: 86.02 kB / 454.4 MB, free: 9.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.09692/0.4787, allocations: 22.62 MB / 477 MB, free: 2.801 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.915e-05/0.4789, allocations: 20 kB / 477 MB, free: 2.781 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002512/0.4814, allocations: 0.9818 MB / 478 MB, free: 1.754 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.4815, allocations: 8.031 kB / 478 MB, free: 1.746 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008711/0.4823, allocations: 142.7 kB / 478.2 MB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/0.4845, allocations: 0.6913 MB / 478.8 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.567e-05/0.4846, allocations: 28 kB / 478.9 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.4848, allocations: 47.91 kB / 478.9 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001514/0.4863, allocations: 428 kB / 479.3 MB, free: 388 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001821/0.4882, allocations: 0.635 MB / 480 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.902e-05/0.4883, allocations: 11.84 kB / 480 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.499e-05/0.4884, allocations: 3.938 kB / 480 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.892e-05/0.4884, allocations: 20 kB / 480 MB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007129/0.4955, allocations: 3.301 MB / 483.3 MB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.496, allocations: 137.3 kB / 483.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002519/0.4962, allocations: 100.9 kB / 483.5 MB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.852e-05/0.4963, allocations: 4 kB / 483.5 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.4963, allocations: 30.56 kB / 483.6 MB, free: 11.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 3.206e-06/0.4963, allocations: 0 / 483.6 MB, free: 11.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.002097/0.4984, allocations: 0.7509 MB / 484.3 MB, free: 11.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.4985, allocations: 81.34 kB / 484.4 MB, free: 10.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.4997, allocations: 0.5268 MB / 484.9 MB, free: 10.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.4997, allocations: 25.7 kB / 485 MB, free: 10.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.5, allocations: 452.3 kB / 485.4 MB, free: 9.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.5002, allocations: 102.5 kB / 485.5 MB, free: 9.879 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.5002, allocations: 0 / 485.5 MB, free: 9.879 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.5004, allocations: 334.8 kB / 485.8 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000304/0.5007, allocations: 93.31 kB / 485.9 MB, free: 9.453 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.5012, allocations: 377 kB / 486.3 MB, free: 8.945 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004413/0.5017, allocations: 168.3 kB / 486.4 MB, free: 8.781 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.5017, allocations: 4 kB / 486.5 MB, free: 8.777 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001278/0.503, allocations: 462.6 kB / 486.9 MB, free: 8.316 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.503, allocations: 8.062 kB / 486.9 MB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.5031, allocations: 8 kB / 486.9 MB, free: 8.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/0.5033, allocations: 36.84 kB / 487 MB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009674/0.5043, allocations: 147.7 kB / 487.1 MB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001246/0.5055, allocations: 1.232 MB / 488.3 MB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004795/0.506, allocations: 24.14 kB / 488.4 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.373e-05/0.5061, allocations: 32 kB / 488.4 MB, free: 6.711 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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.0001301/0.5062, allocations: 57.3 kB / 488.4 MB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.5065, allocations: 63.25 kB / 488.5 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007773/0.5072, allocations: 264.8 kB / 488.8 MB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.5073, allocations: 4 kB / 488.8 MB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.5073, allocations: 0 / 488.8 MB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.5073, allocations: 3.984 kB / 488.8 MB, free: 6.305 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.5092, allocations: 0.9026 MB / 489.7 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.5093, allocations: 4 kB / 489.7 MB, free: 5.332 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005501/0.5098, allocations: 68.11 kB / 489.7 MB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001359/0.51, allocations: 24.8 kB / 489.8 MB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.51, allocations: 0 / 489.8 MB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.5111, allocations: 1.227 MB / 491 MB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5111, allocations: 4.031 kB / 491 MB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009781/0.5121, allocations: 0.5726 MB / 491.6 MB, free: 3.242 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002927/0.5124, allocations: 160.2 kB / 491.7 MB, free: 3.066 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.5126, allocations: 15.91 kB / 491.7 MB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005495/0.5132, allocations: 19.98 kB / 491.8 MB, free: 3.031 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.778e-05/0.5132, allocations: 15.97 kB / 491.8 MB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.5133, allocations: 12 kB / 491.8 MB, free: 3.004 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00076/0.514, allocations: 403.1 kB / 492.2 MB, free: 2.617 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008807/0.5149, allocations: 144 kB / 492.3 MB, free: 2.477 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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.000458/0.5154, allocations: 254.8 kB / 492.6 MB, free: 2.215 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009082/0.5163, allocations: 387.2 kB / 493 MB, free: 1.828 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.5163, allocations: 4.875 kB / 493 MB, free: 1.824 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004376/0.5168, allocations: 202.2 kB / 493.2 MB, free: 1.617 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.518, allocations: 149.8 kB / 493.3 MB, free: 1.469 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.5211, allocations: 1.03 MB / 494.3 MB, free: 388 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009017/0.522, allocations: 1.006 MB / 495.3 MB, free: 15.34 MB / 394.7 MB Notification: Performance of SimCode: time 1.392e-06/0.5221, allocations: 4 kB / 495.3 MB, free: 15.34 MB / 394.7 MB Notification: Performance of Templates: time 0.02715/0.5492, allocations: 13.3 MB / 0.4967 GB, free: 2.035 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches