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.001083/0.001083, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001183/0.001183, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.377/1.377, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001227/0.001227, allocations: 47.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0891/0.09034, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.003501/0.09389, allocations: 2.123 MB / 330.8 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009994/0.09491, allocations: 0.519 MB / 331.4 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.09506, allocations: 4 kB / 331.4 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.09523, allocations: 19.73 kB / 331.4 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.09535, allocations: 51.62 kB / 331.4 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.09565, allocations: 39.88 kB / 331.5 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.0959, allocations: 151.3 kB / 331.6 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.09615, allocations: 57.45 kB / 331.7 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/0.0963, allocations: 67.72 kB / 331.7 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.09643, allocations: 59.77 kB / 331.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.09646, allocations: 12 kB / 331.8 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.062e-05/0.09655, allocations: 27.92 kB / 331.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.84e-05/0.0966, allocations: 27.92 kB / 331.9 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.103e-05/0.09668, allocations: 71.61 kB / 331.9 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.09692, allocations: 163.4 kB / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.09694, allocations: 0 / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.09695, allocations: 0 / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.09696, allocations: 0 / 332.1 MB, free: 352 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.0006574/0.09762, allocations: 443.1 kB / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.09767, allocations: 15.89 kB / 332.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.09779, allocations: 20.75 kB / 332.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.09807, allocations: 204.1 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.09809, allocations: 8.609 kB / 332.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.09812, allocations: 12.38 kB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.09835, allocations: 115.8 kB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.09837, allocations: 0 / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.0984, allocations: 8 kB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.09841, allocations: 0 / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.09858, allocations: 76.67 kB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008013/0.0994, allocations: 0.6088 MB / 333.6 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002741/0.09968, allocations: 86.56 kB / 333.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.498e-05/0.09977, allocations: 28.97 kB / 333.7 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.09979, allocations: 4 kB / 333.7 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.09982, allocations: 34.56 kB / 333.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.09983, allocations: 0 / 333.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.000656/0.1005, allocations: 259.4 kB / 334 MB, free: 14.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/0.1005, allocations: 55.34 kB / 334 MB, free: 14.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.1006, allocations: 149.7 kB / 334.2 MB, free: 14 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.1007, allocations: 29.7 kB / 334.2 MB, free: 13.97 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.566e-05/0.1007, allocations: 120 kB / 334.3 MB, free: 13.85 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.1008, allocations: 27.64 kB / 334.4 MB, free: 13.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-05/0.1008, allocations: 21.72 kB / 334.4 MB, free: 13.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1009, allocations: 322.8 kB / 334.7 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.248e-05/0.101, allocations: 27.92 kB / 334.7 MB, free: 13.44 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.78e-05/0.1011, allocations: 42.56 kB / 334.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000131/0.1012, allocations: 70.48 kB / 334.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1012, allocations: 4 kB / 334.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002625/0.1015, allocations: 138.3 kB / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1015, allocations: 4 kB / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1015, allocations: 0 / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001794/0.1017, allocations: 36.84 kB / 335 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.434e-05/0.1018, allocations: 15.98 kB / 335 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.1032, allocations: 1.678 MB / 336.7 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.039e-05/0.1033, allocations: 19.84 kB / 336.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.1033, allocations: 0 / 336.7 MB, free: 11.27 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.629e-05/0.1034, allocations: 121.8 kB / 336.8 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.397e-05/0.1034, allocations: 15.91 kB / 336.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.658e-05/0.1035, allocations: 16.7 kB / 336.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1035, allocations: 0 / 336.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.1035, allocations: 0 / 336.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.1035, allocations: 192 / 336.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.1037, allocations: 205.6 kB / 337.1 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1037, allocations: 7.938 kB / 337.1 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.605e-05/0.1037, allocations: 3.938 kB / 337.1 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001183/0.1039, allocations: 40.83 kB / 337.1 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.1039, allocations: 4 kB / 337.1 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.1051, allocations: 1.685 MB / 338.8 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.1051, allocations: 128 / 338.8 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/0.1054, allocations: 216.2 kB / 339 MB, free: 8.746 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.436e-05/0.1055, allocations: 89 kB / 339.1 MB, free: 8.641 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.1055, allocations: 4.062 kB / 339.1 MB, free: 8.637 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.574e-05/0.1056, allocations: 4 kB / 339.1 MB, free: 8.633 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.1056, allocations: 11.92 kB / 339.1 MB, free: 8.621 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-06/0.1056, allocations: 4 kB / 339.1 MB, free: 8.617 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.94e-05/0.1057, allocations: 111.9 kB / 339.3 MB, free: 8.508 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1057, allocations: 4 kB / 339.3 MB, free: 8.504 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003546/0.1061, allocations: 35.94 kB / 339.3 MB, free: 8.469 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.0001131/0.1062, allocations: 99.25 kB / 339.4 MB, free: 8.363 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000401/0.1066, allocations: 190.5 kB / 339.6 MB, free: 8.164 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1066, allocations: 0 / 339.6 MB, free: 8.164 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.1068, allocations: 158.6 kB / 339.7 MB, free: 7.996 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.1071, allocations: 19.06 kB / 339.7 MB, free: 7.98 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005423/0.1077, allocations: 288.1 kB / 340 MB, free: 7.672 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.108, allocations: 0.7079 MB / 340.7 MB, free: 6.938 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.705e-05/0.108, allocations: 8.438 kB / 340.7 MB, free: 6.93 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.104e-05/0.1081, allocations: 11.44 kB / 340.8 MB, free: 6.918 MB / 286.1 MB Notification: Performance of SimCode: time 2e-07/0.1081, allocations: 0 / 340.8 MB, free: 6.918 MB / 286.1 MB Notification: Performance of Templates: time 0.004031/0.1121, allocations: 1.492 MB / 342.2 MB, free: 5.43 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 cvode -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