Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.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.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor") translateModel(Modelica.Electrical.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor") [: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.00107/0.00107, allocations: 189.9 kB / 8.484 MB, free: 1.789 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.202/1.202, allocations: 205.2 MB / 214.1 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.0009735/0.0009736, allocations: 87.78 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.348e-06/9.368e-06, allocations: 4 kB / 315 MB, free: 8.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.212, allocations: 47.55 MB / 362.5 MB, free: 45.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09851/0.3106, allocations: 76.42 MB / 438.9 MB, free: 9.504 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.311, allocations: 71.95 kB / 439 MB, free: 9.434 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.007418/0.3184, allocations: 2.423 MB / 441.4 MB, free: 7.039 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.3184, allocations: 0 / 441.4 MB, free: 7.039 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005613/0.319, allocations: 413.2 kB / 441.8 MB, free: 6.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.3191, allocations: 8.031 kB / 441.9 MB, free: 6.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.3192, allocations: 19.2 kB / 441.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.3194, allocations: 205.8 kB / 442.1 MB, free: 6.328 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.3195, allocations: 4 kB / 442.1 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.3195, allocations: 8 kB / 442.1 MB, free: 6.316 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001566/0.3196, allocations: 64.45 kB / 442.1 MB, free: 6.254 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001997/0.3198, allocations: 93.94 kB / 442.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3199, allocations: 2.344 kB / 442.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.3199, allocations: 7.984 kB / 442.2 MB, free: 6.152 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.3199, allocations: 0 / 442.2 MB, free: 6.152 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007915/0.3207, allocations: 0.5708 MB / 442.8 MB, free: 5.516 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.321, allocations: 70.64 kB / 442.9 MB, free: 5.438 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.135e-05/0.321, allocations: 28.98 kB / 442.9 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.3211, allocations: 0 / 442.9 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.3211, allocations: 42.55 kB / 443 MB, free: 5.355 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 7.91e-07/0.3211, allocations: 0 / 443 MB, free: 5.355 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003606/0.3215, allocations: 102.3 kB / 443.1 MB, free: 5.246 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.3215, allocations: 51.41 kB / 443.1 MB, free: 5.184 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.3217, allocations: 128.8 kB / 443.2 MB, free: 5.051 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.3217, allocations: 29.7 kB / 443.3 MB, free: 5.016 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.19e-05/0.3218, allocations: 119.9 kB / 443.4 MB, free: 4.891 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.3218, allocations: 15.8 kB / 443.4 MB, free: 4.875 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.3218, allocations: 0 / 443.4 MB, free: 4.875 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.322, allocations: 322.8 kB / 443.7 MB, free: 4.551 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.422e-05/0.322, allocations: 16 kB / 443.7 MB, free: 4.535 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.437e-05/0.3221, allocations: 34.58 kB / 443.8 MB, free: 4.492 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.815e-05/0.3221, allocations: 33.39 kB / 443.8 MB, free: 4.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.3221, allocations: 6.719 kB / 443.8 MB, free: 4.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002219/0.3224, allocations: 106.4 kB / 443.9 MB, free: 4.348 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.3224, allocations: 8 kB / 443.9 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3224, allocations: 0 / 443.9 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001799/0.3226, allocations: 44.83 kB / 444 MB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.526e-05/0.3226, allocations: 11.94 kB / 444 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.3238, allocations: 1.437 MB / 445.4 MB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.174e-05/0.3239, allocations: 7.906 kB / 445.4 MB, free: 2.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.3239, allocations: 4 kB / 445.4 MB, free: 2.715 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 8.519e-05/0.324, allocations: 108.9 kB / 445.5 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/0.324, allocations: 7.906 kB / 445.5 MB, free: 2.594 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.261e-05/0.3241, allocations: 16.62 kB / 445.5 MB, free: 2.578 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.3241, allocations: 0 / 445.5 MB, free: 2.578 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.3241, allocations: 0 / 445.5 MB, free: 2.578 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3241, allocations: 3.906 kB / 445.5 MB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.3243, allocations: 178.2 kB / 445.7 MB, free: 2.363 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3243, allocations: 0 / 445.7 MB, free: 2.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.863e-05/0.3243, allocations: 4.812 kB / 445.7 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001162/0.3245, allocations: 32.84 kB / 445.8 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.3245, allocations: 7.984 kB / 445.8 MB, free: 2.316 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/0.3256, allocations: 1.443 MB / 447.2 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3256, allocations: 0 / 447.2 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002595/0.3259, allocations: 200.2 kB / 447.4 MB, free: 0.543 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.3259, allocations: 81.02 kB / 447.5 MB, free: 456 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.326, allocations: 0 / 447.5 MB, free: 456 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.3261, allocations: 16.05 kB / 447.5 MB, free: 440 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.331e-05/0.3261, allocations: 0 / 447.5 MB, free: 440 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-06/0.3261, allocations: 7.906 kB / 447.5 MB, free: 432 kB / 330.7 MB Notification: Performance of sort global known variables: time 6.677e-05/0.3262, allocations: 108.8 kB / 447.6 MB, free: 324 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003294/0.3265, allocations: 31.94 kB / 447.6 MB, free: 292 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001235/0.3267, allocations: 96 kB / 447.7 MB, free: 188 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003096/0.327, allocations: 164.2 kB / 447.9 MB, free: 16 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.327, allocations: 0 / 447.9 MB, free: 16 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.3272, allocations: 137.8 kB / 448 MB, free: 15.87 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001913/0.3274, allocations: 9.031 kB / 448 MB, free: 15.86 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003779/0.3278, allocations: 154.3 kB / 448.2 MB, free: 15.69 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.3281, allocations: 0.7186 MB / 448.9 MB, free: 14.95 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3281, allocations: 0 / 448.9 MB, free: 14.95 MB / 346.7 MB Notification: Performance of Templates: time 0.003497/0.3316, allocations: 1.317 MB / 450.2 MB, free: 13.66 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingResistor/HeatingResistor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches