Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00121/0.00121, allocations: 177.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0009918/0.0009919, allocations: 100.8 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004697/0.0004699, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2622, allocations: 47.58 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.001953/0.2642, allocations: 1.788 MB / 376.3 MB, free: 44.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006623/0.2649, allocations: 475.9 kB / 376.8 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.48e-05/0.265, allocations: 2.062 kB / 376.8 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.316e-05/0.2651, allocations: 14.31 kB / 376.8 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.592e-05/0.2651, allocations: 32.45 kB / 376.9 MB, free: 43.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.2653, allocations: 41.45 kB / 376.9 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001575/0.2655, allocations: 144.7 kB / 377 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.2656, allocations: 49.83 kB / 377.1 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.2657, allocations: 48.39 kB / 377.1 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.183e-05/0.2658, allocations: 59.66 kB / 377.2 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.2659, allocations: 5.781 kB / 377.2 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.053e-05/0.2659, allocations: 9.219 kB / 377.2 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.796e-05/0.266, allocations: 23.8 kB / 377.2 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.438e-05/0.266, allocations: 50.8 kB / 377.3 MB, free: 43.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.2661, allocations: 115.7 kB / 377.4 MB, free: 43.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2661, allocations: 0 / 377.4 MB, free: 43.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2661, allocations: 0 / 377.4 MB, free: 43.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2662, allocations: 5.281 kB / 377.4 MB, free: 43.23 MB / 298.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.0004716/0.2666, allocations: 420.5 kB / 377.8 MB, free: 42.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.2667, allocations: 9.312 kB / 377.8 MB, free: 42.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.233e-05/0.2668, allocations: 16.72 kB / 377.8 MB, free: 42.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.267, allocations: 206.5 kB / 378 MB, free: 42.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.267, allocations: 12.53 kB / 378 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.267, allocations: 11.66 kB / 378.1 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.2672, allocations: 121.6 kB / 378.2 MB, free: 42.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.2673, allocations: 9.031 kB / 378.2 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.2673, allocations: 5 kB / 378.2 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.2673, allocations: 3.156 kB / 378.2 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.2675, allocations: 85.86 kB / 378.3 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007075/0.2682, allocations: 0.6072 MB / 378.9 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002798/0.2685, allocations: 90.28 kB / 379 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.071e-05/0.2686, allocations: 33.25 kB / 379 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.2686, allocations: 1.312 kB / 379 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.2686, allocations: 31.84 kB / 379 MB, free: 41.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.2687, allocations: 0 / 379 MB, free: 41.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007093/0.2694, allocations: 268.5 kB / 379.3 MB, free: 41.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.2694, allocations: 60.5 kB / 379.4 MB, free: 41.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.2695, allocations: 146.5 kB / 379.5 MB, free: 41.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.2696, allocations: 30.73 kB / 379.5 MB, free: 41.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.49e-05/0.2696, allocations: 130.5 kB / 379.7 MB, free: 41.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.2697, allocations: 18.67 kB / 379.7 MB, free: 41.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.2697, allocations: 1.125 kB / 379.7 MB, free: 41.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.775e-05/0.2697, allocations: 320.7 kB / 380 MB, free: 40.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.995e-05/0.2698, allocations: 21.39 kB / 380 MB, free: 40.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.145e-05/0.2699, allocations: 46.88 kB / 380.1 MB, free: 40.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.465e-05/0.27, allocations: 27.97 kB / 380.1 MB, free: 40.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.27, allocations: 0 / 380.1 MB, free: 40.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002853/0.2703, allocations: 150.5 kB / 380.2 MB, free: 40.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.2703, allocations: 4.469 kB / 380.2 MB, free: 40.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2703, allocations: 1.156 kB / 380.2 MB, free: 40.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001917/0.2705, allocations: 39.39 kB / 380.3 MB, free: 40.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.704e-05/0.2706, allocations: 7.219 kB / 380.3 MB, free: 40.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.2718, allocations: 1.517 MB / 381.8 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.02e-05/0.2719, allocations: 12.55 kB / 381.8 MB, free: 39.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.2719, allocations: 3.062 kB / 381.8 MB, free: 39.13 MB / 298.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 () * Number of clocked 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 9.674e-05/0.272, allocations: 131.4 kB / 381.9 MB, free: 39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.353e-05/0.2721, allocations: 13.22 kB / 382 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.304e-05/0.2721, allocations: 11.62 kB / 382 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2721, allocations: 0 / 382 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.2721, allocations: 4 kB / 382 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2721, allocations: 1.219 kB / 382 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.2723, allocations: 210.8 kB / 382.2 MB, free: 38.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2723, allocations: 0 / 382.2 MB, free: 38.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.153e-05/0.2724, allocations: 7.766 kB / 382.2 MB, free: 38.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001273/0.2725, allocations: 34.44 kB / 382.2 MB, free: 38.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.2726, allocations: 0 / 382.2 MB, free: 38.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009607/0.2735, allocations: 1.509 MB / 383.7 MB, free: 37.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2735, allocations: 4 kB / 383.7 MB, free: 37.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002724/0.2738, allocations: 220.6 kB / 383.9 MB, free: 37.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.922e-05/0.2738, allocations: 91.28 kB / 384 MB, free: 36.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.2739, allocations: 5.344 kB / 384 MB, free: 36.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.984e-05/0.274, allocations: 5.391 kB / 384 MB, free: 36.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.412e-05/0.274, allocations: 14.75 kB / 384.1 MB, free: 36.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.274, allocations: 1.219 kB / 384.1 MB, free: 36.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.674e-05/0.2741, allocations: 114.3 kB / 384.2 MB, free: 36.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2741, allocations: 0 / 384.2 MB, free: 36.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003285/0.2745, allocations: 35.84 kB / 384.2 MB, free: 36.8 MB / 298.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 () * Number of clocked 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.0001065/0.2746, allocations: 103.4 kB / 384.3 MB, free: 36.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003602/0.2749, allocations: 191.5 kB / 384.5 MB, free: 36.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2749, allocations: 0.9688 kB / 384.5 MB, free: 36.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001747/0.2751, allocations: 156.7 kB / 384.7 MB, free: 36.42 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.2754, allocations: 12.14 kB / 384.7 MB, free: 36.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000496/0.2759, allocations: 387.1 kB / 385 MB, free: 36.1 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000137/0.2761, allocations: 0.7112 MB / 385.8 MB, free: 35.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.618e-05/0.2761, allocations: 10.88 kB / 385.8 MB, free: 35.38 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2761, allocations: 0 / 385.8 MB, free: 35.38 MB / 298.7 MB Notification: Performance of Templates: time 0.003205/0.2793, allocations: 1.88 MB / 387.6 MB, free: 34.4 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches