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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 100.5 kB / 18.35 MB, free: 4.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.1 MB / 225.2 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 52.3 kB / 282.1 MB, free: 2.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08614/0.08731, allocations: 46.63 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.003271/0.09062, allocations: 2.138 MB / 330.9 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008511/0.09149, allocations: 0.5112 MB / 331.4 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.552e-05/0.0916, allocations: 0 / 331.4 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.09174, allocations: 19.8 kB / 331.4 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.854e-05/0.09184, allocations: 39.62 kB / 331.4 MB, free: 1.035 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.09205, allocations: 43.88 kB / 331.5 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000181/0.09224, allocations: 159.2 kB / 331.6 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001691/0.09242, allocations: 49.47 kB / 331.7 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.09253, allocations: 71.7 kB / 331.7 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.09265, allocations: 67.7 kB / 331.8 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.09268, allocations: 12 kB / 331.8 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.75e-05/0.09275, allocations: 16 kB / 331.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.562e-05/0.0928, allocations: 27.92 kB / 331.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.016e-05/0.09287, allocations: 71.61 kB / 331.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.09308, allocations: 163.4 kB / 332.1 MB, free: 372 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.09309, allocations: 0 / 332.1 MB, free: 372 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.0931, allocations: 0 / 332.1 MB, free: 372 kB / 270.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.09311, allocations: 0 / 332.1 MB, free: 372 kB / 270.1 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.0006115/0.09372, allocations: 447.1 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.09377, allocations: 11.89 kB / 332.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.09389, allocations: 16.75 kB / 332.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.09414, allocations: 208.1 kB / 332.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.09416, allocations: 8.609 kB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.09418, allocations: 12.38 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.09441, allocations: 119.8 kB / 332.9 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.09443, allocations: 4 kB / 332.9 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.09445, allocations: 4 kB / 332.9 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.09447, allocations: 7.938 kB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.09464, allocations: 76.66 kB / 333 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007727/0.09542, allocations: 0.5971 MB / 333.6 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.09571, allocations: 98.55 kB / 333.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.208e-05/0.09579, allocations: 32.97 kB / 333.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.09581, allocations: 0 / 333.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.09583, allocations: 30.56 kB / 333.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 9.02e-07/0.09584, allocations: 0 / 333.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006515/0.0965, allocations: 255.6 kB / 334 MB, free: 14.24 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.09654, allocations: 59.34 kB / 334.1 MB, free: 14.17 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.09666, allocations: 150.2 kB / 334.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.09668, allocations: 29.7 kB / 334.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.708e-05/0.09676, allocations: 128 kB / 334.4 MB, free: 13.85 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.09678, allocations: 19.66 kB / 334.4 MB, free: 13.83 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.233e-05/0.09683, allocations: 25.7 kB / 334.4 MB, free: 13.8 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.525e-05/0.09692, allocations: 314.8 kB / 334.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.132e-05/0.09698, allocations: 20.05 kB / 334.7 MB, free: 13.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.633e-05/0.09706, allocations: 50.56 kB / 334.8 MB, free: 13.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001198/0.09718, allocations: 70.5 kB / 334.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.09719, allocations: 0 / 334.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002648/0.09746, allocations: 134.3 kB / 335 MB, free: 13.19 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.09749, allocations: 8.062 kB / 335 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.0975, allocations: 4 kB / 335 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.09768, allocations: 32.84 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.495e-05/0.09774, allocations: 15.92 kB / 335 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.09935, allocations: 1.681 MB / 336.7 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.959e-05/0.09944, allocations: 15.94 kB / 336.7 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.09945, allocations: 8 kB / 336.7 MB, free: 11.28 MB / 286.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.751e-05/0.09956, allocations: 117.8 kB / 336.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.167e-05/0.09959, allocations: 11.97 kB / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.443e-05/0.09962, allocations: 16.91 kB / 336.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.09963, allocations: 4 kB / 336.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.21e-07/0.09964, allocations: 3.938 kB / 336.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.09965, allocations: 8.031 kB / 336.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.09986, allocations: 205.6 kB / 337.1 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.09987, allocations: 4 kB / 337.1 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.94e-05/0.09992, allocations: 11.92 kB / 337.1 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001088/0.1, allocations: 32.84 kB / 337.1 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.649e-06/0.1, allocations: 0 / 337.1 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/0.1014, allocations: 1.681 MB / 338.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.1014, allocations: 0 / 338.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003222/0.1018, allocations: 224.4 kB / 339 MB, free: 8.754 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.1018, allocations: 85.02 kB / 339.1 MB, free: 8.652 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.1018, allocations: 4 kB / 339.1 MB, free: 8.648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.751e-05/0.1019, allocations: 4 kB / 339.1 MB, free: 8.645 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.375e-05/0.102, allocations: 11.92 kB / 339.2 MB, free: 8.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/0.102, allocations: 0 / 339.2 MB, free: 8.633 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001315/0.1021, allocations: 123.4 kB / 339.3 MB, free: 8.512 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1021, allocations: 0 / 339.3 MB, free: 8.512 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003561/0.1025, allocations: 35.94 kB / 339.3 MB, free: 8.477 MB / 286.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001233/0.1026, allocations: 99.25 kB / 339.4 MB, free: 8.371 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004203/0.1031, allocations: 186.6 kB / 339.6 MB, free: 8.176 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1031, allocations: 128 / 339.6 MB, free: 8.176 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.1033, allocations: 162.6 kB / 339.7 MB, free: 8.004 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.1036, allocations: 19.05 kB / 339.8 MB, free: 7.988 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005676/0.1041, allocations: 276 kB / 340 MB, free: 7.691 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.1044, allocations: 0.7235 MB / 340.8 MB, free: 6.941 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.645e-05/0.1045, allocations: 4.438 kB / 340.8 MB, free: 6.938 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.326e-05/0.1045, allocations: 7.438 kB / 340.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of SimCode: time 2e-07/0.1045, allocations: 0 / 340.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of Templates: time 0.003978/0.1085, allocations: 1.497 MB / 342.3 MB, free: 5.434 MB / 286.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingResistor/HeatingResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches