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.001143/0.001143, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001386/0.001386, allocations: 183 kB / 18.66 MB, free: 4.414 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.549/1.549, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001131/0.001131, allocations: 52.34 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1044, allocations: 46.62 MB / 375.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.0035/0.1079, allocations: 2.131 MB / 377.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009181/0.1088, allocations: 0.5034 MB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.908e-05/0.109, allocations: 7.938 kB / 377.8 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.1091, allocations: 19.78 kB / 377.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.981e-05/0.1092, allocations: 35.64 kB / 377.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002362/0.1094, allocations: 43.89 kB / 377.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001834/0.1096, allocations: 163.2 kB / 378 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.1098, allocations: 57.45 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.1099, allocations: 67.72 kB / 378.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.11, allocations: 63.75 kB / 378.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.1101, allocations: 12 kB / 378.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.574e-05/0.1102, allocations: 16 kB / 378.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.001e-05/0.1102, allocations: 31.86 kB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.983e-05/0.1103, allocations: 67.67 kB / 378.3 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002121/0.1105, allocations: 163.4 kB / 378.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1105, allocations: 8 kB / 378.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1105, allocations: 0 / 378.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.1105, allocations: 0 / 378.5 MB, free: 1.16 MB / 318.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.0006362/0.1112, allocations: 439.1 kB / 378.9 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.1112, allocations: 15.83 kB / 379 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.1113, allocations: 20.78 kB / 379 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002668/0.1116, allocations: 204.1 kB / 379.2 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.1116, allocations: 8.609 kB / 379.2 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.1117, allocations: 16.38 kB / 379.2 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.1119, allocations: 123.8 kB / 379.3 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1119, allocations: 0 / 379.3 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.112, allocations: 8 kB / 379.3 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.112, allocations: 3.984 kB / 379.3 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.1122, allocations: 80.66 kB / 379.4 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2381/0.3502, allocations: 0.5837 MB / 380 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004008/0.3507, allocations: 86.05 kB / 380.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.761e-05/0.3508, allocations: 33.72 kB / 380.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.3508, allocations: 0 / 380.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.3509, allocations: 44.19 kB / 380.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 2.044e-06/0.3509, allocations: 0 / 380.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007689/0.3516, allocations: 251.5 kB / 380.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/0.3517, allocations: 52.78 kB / 380.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.3518, allocations: 151.9 kB / 380.6 MB, free: 12.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.3518, allocations: 25.7 kB / 380.6 MB, free: 12.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/0.3519, allocations: 122.9 kB / 380.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.499e-05/0.3519, allocations: 23.86 kB / 380.8 MB, free: 12.31 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.352, allocations: 26.38 kB / 380.8 MB, free: 12.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.28e-05/0.352, allocations: 326.6 kB / 381.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.708e-05/0.3521, allocations: 21.22 kB / 381.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.937e-05/0.3522, allocations: 40.55 kB / 381.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001222/0.3523, allocations: 72.34 kB / 381.2 MB, free: 11.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3523, allocations: 1.203 kB / 381.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002559/0.3526, allocations: 133.9 kB / 381.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.3526, allocations: 11.5 kB / 381.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.3526, allocations: 2.562 kB / 381.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001904/0.3528, allocations: 36.27 kB / 381.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.831e-05/0.3529, allocations: 12.91 kB / 381.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.3542, allocations: 1.682 MB / 383.1 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.708e-05/0.3543, allocations: 11.77 kB / 383.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.3544, allocations: 5.219 kB / 383.1 MB, free: 10.37 MB / 318.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 0.0001127/0.3545, allocations: 121.8 kB / 383.3 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.558e-05/0.3545, allocations: 8.344 kB / 383.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.54e-05/0.3545, allocations: 16.73 kB / 383.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.3546, allocations: 5.125 kB / 383.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.3546, allocations: 2.062 kB / 383.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3546, allocations: 1.375 kB / 383.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000256/0.3548, allocations: 206.3 kB / 383.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3549, allocations: 3.734 kB / 383.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.973e-05/0.3549, allocations: 3.922 kB / 383.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000137/0.355, allocations: 44.75 kB / 383.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.3551, allocations: 1.375 kB / 383.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.3563, allocations: 1.686 MB / 385.2 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3563, allocations: 6.359 kB / 385.2 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003073/0.3566, allocations: 214.8 kB / 385.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.957e-05/0.3566, allocations: 88.41 kB / 385.5 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.3566, allocations: 1.062 kB / 385.5 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.3568, allocations: 10.12 kB / 385.5 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.3568, allocations: 12.66 kB / 385.6 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.3568, allocations: 3.078 kB / 385.6 MB, free: 8.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.538e-05/0.3569, allocations: 106.7 kB / 385.7 MB, free: 8.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3569, allocations: 4 kB / 385.7 MB, free: 8.164 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003892/0.3573, allocations: 38.53 kB / 385.7 MB, free: 8.156 MB / 318.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.0001283/0.3574, allocations: 97.06 kB / 385.8 MB, free: 8.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004558/0.3579, allocations: 191.3 kB / 386 MB, free: 7.934 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3579, allocations: 4.5 kB / 386 MB, free: 7.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000206/0.3581, allocations: 158.6 kB / 386.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.3584, allocations: 17.75 kB / 386.2 MB, free: 7.793 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006788/0.3591, allocations: 283.1 kB / 386.4 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.3594, allocations: 0.7137 MB / 387.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.982e-05/0.3594, allocations: 7.234 kB / 387.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.044e-05/0.3595, allocations: 10.64 kB / 387.2 MB, free: 6.891 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3595, allocations: 1.312 kB / 387.2 MB, free: 6.891 MB / 318.1 MB Notification: Performance of Templates: time 0.005682/0.3652, allocations: 1.526 MB / 388.7 MB, free: 6.77 MB / 318.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