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.001327/0.001327, allocations: 101.4 kB / 18.39 MB, free: 4.664 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.001333/0.001333, allocations: 189.1 kB / 19.33 MB, free: 3.738 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.36/1.36, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001264/0.001264, allocations: 55.92 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08624/0.08752, allocations: 46.61 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.003965/0.09153, allocations: 2.132 MB / 377.9 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.09275, allocations: 0.5034 MB / 378.4 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.09297, allocations: 4 kB / 378.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001828/0.0932, allocations: 23.78 kB / 378.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.09336, allocations: 39.62 kB / 378.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.09367, allocations: 43.83 kB / 378.6 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000237/0.09391, allocations: 155.2 kB / 378.7 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.09411, allocations: 61.44 kB / 378.8 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.09427, allocations: 67.72 kB / 378.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.09441, allocations: 63.77 kB / 378.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.09444, allocations: 12 kB / 378.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.968e-05/0.09453, allocations: 16 kB / 378.9 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.659e-05/0.09457, allocations: 27.86 kB / 379 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.58e-05/0.09466, allocations: 79.58 kB / 379 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.09492, allocations: 163.4 kB / 379.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.09494, allocations: 4 kB / 379.2 MB, free: 1.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09495, allocations: 4 kB / 379.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.09496, allocations: 0 / 379.2 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.0006465/0.09561, allocations: 435.1 kB / 379.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.09566, allocations: 11.89 kB / 379.6 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.09578, allocations: 16.84 kB / 379.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.09611, allocations: 208 kB / 379.9 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.09613, allocations: 4.609 kB / 379.9 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.09616, allocations: 16.38 kB / 379.9 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.09642, allocations: 123.8 kB / 380 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.914e-06/0.09643, allocations: 0 / 380 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.09646, allocations: 11.94 kB / 380 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.09647, allocations: 0 / 380 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.09667, allocations: 80.66 kB / 380.1 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1733/0.27, allocations: 0.5902 MB / 380.7 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002815/0.2703, allocations: 85.5 kB / 380.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.211e-05/0.2704, allocations: 27.94 kB / 380.8 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.2704, allocations: 6.391 kB / 380.8 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.2705, allocations: 37.78 kB / 380.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 3.336e-06/0.2705, allocations: 0 / 380.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006771/0.2711, allocations: 252.7 kB / 381.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.2712, allocations: 52.53 kB / 381.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.2713, allocations: 149.9 kB / 381.3 MB, free: 12.47 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.2713, allocations: 31.39 kB / 381.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.759e-05/0.2714, allocations: 121.5 kB / 381.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.2714, allocations: 23.33 kB / 381.4 MB, free: 12.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.2714, allocations: 21.45 kB / 381.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.891e-05/0.2715, allocations: 325.9 kB / 381.8 MB, free: 12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.158e-05/0.2716, allocations: 21.84 kB / 381.8 MB, free: 12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.826e-05/0.2716, allocations: 47.5 kB / 381.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.2718, allocations: 66.69 kB / 381.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.2718, allocations: 0.9375 kB / 381.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002577/0.272, allocations: 136.9 kB / 382.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.2721, allocations: 5.938 kB / 382.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.2721, allocations: 7.469 kB / 382.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001817/0.2723, allocations: 37.53 kB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.579e-05/0.2723, allocations: 8.062 kB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.2735, allocations: 1.692 MB / 383.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.119e-05/0.2736, allocations: 9.094 kB / 383.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.2736, allocations: 5.922 kB / 383.8 MB, free: 10.39 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 7.788e-05/0.2737, allocations: 119.8 kB / 383.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.2737, allocations: 14.64 kB / 383.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.105e-05/0.2738, allocations: 14.06 kB / 384 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2738, allocations: 1.375 kB / 384 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.2738, allocations: 3.938 kB / 384 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.2738, allocations: 6.156 kB / 384 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/0.274, allocations: 209 kB / 384.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.274, allocations: 0 / 384.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.606e-05/0.274, allocations: 10.56 kB / 384.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.2741, allocations: 36.8 kB / 384.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.2741, allocations: 3.844 kB / 384.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009832/0.2751, allocations: 1.681 MB / 385.9 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2751, allocations: 1.094 kB / 385.9 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002733/0.2754, allocations: 219.4 kB / 386.1 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.845e-05/0.2755, allocations: 90.33 kB / 386.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.2755, allocations: 1.094 kB / 386.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.749e-05/0.2756, allocations: 5.781 kB / 386.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.956e-05/0.2756, allocations: 9.969 kB / 386.2 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-06/0.2756, allocations: 2.938 kB / 386.2 MB, free: 8.277 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.335e-05/0.2757, allocations: 112.3 kB / 386.3 MB, free: 8.191 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2757, allocations: 0 / 386.3 MB, free: 8.191 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003441/0.2761, allocations: 39.56 kB / 386.4 MB, free: 8.184 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.0001054/0.2762, allocations: 99.19 kB / 386.5 MB, free: 8.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000402/0.2766, allocations: 193 kB / 386.7 MB, free: 7.953 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2766, allocations: 0.5938 kB / 386.7 MB, free: 7.953 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001994/0.2768, allocations: 163.9 kB / 386.8 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.2771, allocations: 16.22 kB / 386.8 MB, free: 7.816 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000499/0.2776, allocations: 310.6 kB / 387.1 MB, free: 7.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/0.2777, allocations: 0.7093 MB / 387.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.2778, allocations: 12.08 kB / 387.9 MB, free: 6.887 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2778, allocations: 0 / 387.9 MB, free: 6.887 MB / 318.1 MB Notification: Performance of Templates: time 0.003827/0.2816, allocations: 1.898 MB / 389.8 MB, free: 6.766 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/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