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.001207/0.001207, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001197/0.001197, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.363/1.363, allocations: 205.1 MB / 224.4 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.001231/0.001231, allocations: 52.14 kB / 280.6 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1112, allocations: 46.64 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.003833/0.115, allocations: 2.116 MB / 329.4 MB, free: 2.332 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.1161, allocations: 0.5033 MB / 329.9 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.1163, allocations: 8 kB / 329.9 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.1165, allocations: 27.78 kB / 329.9 MB, free: 1.785 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000122/0.1166, allocations: 43.56 kB / 330 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.1168, allocations: 39.88 kB / 330 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.1171, allocations: 155.3 kB / 330.2 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.1172, allocations: 49.47 kB / 330.2 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.1174, allocations: 67.78 kB / 330.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.1175, allocations: 75.62 kB / 330.4 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.1175, allocations: 12 kB / 330.4 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.428e-05/0.1176, allocations: 16 kB / 330.4 MB, free: 1.332 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.976e-05/0.1177, allocations: 23.92 kB / 330.4 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.444e-05/0.1177, allocations: 67.67 kB / 330.5 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002103/0.118, allocations: 163.7 kB / 330.6 MB, free: 1.082 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.118, allocations: 3.984 kB / 330.6 MB, free: 1.078 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.118, allocations: 0 / 330.6 MB, free: 1.078 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.118, allocations: 0 / 330.6 MB, free: 1.078 MB / 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.0005929/0.1186, allocations: 447.1 kB / 331.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.1186, allocations: 11.89 kB / 331.1 MB, free: 0.582 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.1188, allocations: 16.75 kB / 331.1 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.119, allocations: 208.1 kB / 331.3 MB, free: 332 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.119, allocations: 4.609 kB / 331.3 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.119, allocations: 12.38 kB / 331.3 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.1193, allocations: 127.8 kB / 331.4 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1193, allocations: 0 / 331.4 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.1193, allocations: 8 kB / 331.5 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.1193, allocations: 4 kB / 331.5 MB, free: 172 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001686/0.1195, allocations: 72.67 kB / 331.5 MB, free: 100 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008373/0.1204, allocations: 0.605 MB / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.1207, allocations: 86.55 kB / 332.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.651e-05/0.1207, allocations: 36.97 kB / 332.3 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.1208, allocations: 0 / 332.3 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.1208, allocations: 34.56 kB / 332.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.1208, allocations: 8 kB / 332.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006689/0.1215, allocations: 247.4 kB / 332.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.1215, allocations: 63.33 kB / 332.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.1216, allocations: 149.5 kB / 332.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.1217, allocations: 25.7 kB / 332.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.267e-05/0.1217, allocations: 124 kB / 332.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.1218, allocations: 23.64 kB / 332.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.143e-05/0.1218, allocations: 29.59 kB / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.966e-05/0.1219, allocations: 322.8 kB / 333.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.324e-05/0.122, allocations: 23.98 kB / 333.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.27e-05/0.1221, allocations: 42.5 kB / 333.3 MB, free: 14.11 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.1222, allocations: 70.55 kB / 333.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1222, allocations: 0 / 333.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002799/0.1225, allocations: 146.2 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.1225, allocations: 4 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1225, allocations: 0 / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001809/0.1227, allocations: 32.84 kB / 333.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.324e-05/0.1228, allocations: 11.98 kB / 333.6 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.1243, allocations: 1.686 MB / 335.3 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.877e-05/0.1243, allocations: 11.84 kB / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-06/0.1243, allocations: 0 / 335.3 MB, free: 12 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.409e-05/0.1244, allocations: 125.8 kB / 335.4 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.392e-05/0.1245, allocations: 19.89 kB / 335.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.414e-05/0.1245, allocations: 12.72 kB / 335.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1245, allocations: 0 / 335.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-06/0.1245, allocations: 0 / 335.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1245, allocations: 48 / 335.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002027/0.1247, allocations: 213.6 kB / 335.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1248, allocations: 0 / 335.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.297e-05/0.1248, allocations: 11.92 kB / 335.7 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001159/0.1249, allocations: 36.84 kB / 335.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.1249, allocations: 4 kB / 335.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/0.1262, allocations: 1.681 MB / 337.4 MB, free: 9.699 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1262, allocations: 0 / 337.4 MB, free: 9.699 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002788/0.1265, allocations: 220.2 kB / 337.6 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.632e-05/0.1265, allocations: 81.02 kB / 337.7 MB, free: 9.367 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.1266, allocations: 4 kB / 337.7 MB, free: 9.363 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.557e-05/0.1267, allocations: 8.188 kB / 337.7 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.832e-05/0.1267, allocations: 3.984 kB / 337.7 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.179e-06/0.1267, allocations: 7.938 kB / 337.7 MB, free: 9.344 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.421e-05/0.1268, allocations: 111.9 kB / 337.8 MB, free: 9.234 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1268, allocations: 4 kB / 337.8 MB, free: 9.23 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000336/0.1272, allocations: 39.94 kB / 337.8 MB, free: 9.191 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.0001123/0.1273, allocations: 99.19 kB / 337.9 MB, free: 9.086 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000379/0.1277, allocations: 190.5 kB / 338.1 MB, free: 8.887 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1277, allocations: 0 / 338.1 MB, free: 8.887 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002021/0.1279, allocations: 162.8 kB / 338.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.1281, allocations: 19.22 kB / 338.3 MB, free: 8.699 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005304/0.1287, allocations: 287.9 kB / 338.6 MB, free: 8.391 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.129, allocations: 0.708 MB / 339.3 MB, free: 7.656 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.104e-05/0.129, allocations: 4.438 kB / 339.3 MB, free: 7.652 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.129, allocations: 11.44 kB / 339.3 MB, free: 7.641 MB / 286.1 MB Notification: Performance of SimCode: time 2.71e-07/0.129, allocations: 0 / 339.3 MB, free: 7.641 MB / 286.1 MB Notification: Performance of Templates: time 0.004146/0.1332, allocations: 1.492 MB / 340.8 MB, free: 6.148 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 -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","/var/lib/jenkins/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