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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.0009918/0.0009917, allocations: 191.9 kB / 18.51 MB, free: 4.512 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.407/1.407, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001289/0.001289, allocations: 52.14 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1227, allocations: 46.64 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.004522/0.1273, allocations: 2.124 MB / 329.5 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.1285, allocations: 0.5073 MB / 330 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.1286, allocations: 3.938 kB / 330 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.1288, allocations: 23.78 kB / 330 MB, free: 1.691 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.317e-05/0.1289, allocations: 35.64 kB / 330.1 MB, free: 1.656 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.1292, allocations: 43.88 kB / 330.1 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002151/0.1294, allocations: 155.3 kB / 330.3 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.1296, allocations: 61.45 kB / 330.3 MB, free: 1.398 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.1298, allocations: 63.72 kB / 330.4 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.1299, allocations: 67.7 kB / 330.5 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.1299, allocations: 12 kB / 330.5 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.202e-05/0.13, allocations: 20 kB / 330.5 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.856e-05/0.1301, allocations: 31.91 kB / 330.5 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.1302, allocations: 67.67 kB / 330.6 MB, free: 1.141 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.1304, allocations: 155.7 kB / 330.7 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1304, allocations: 0 / 330.7 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1305, allocations: 0 / 330.7 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1305, allocations: 0 / 330.7 MB, free: 0.9883 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.0007268/0.1312, allocations: 451.1 kB / 331.2 MB, free: 0.5 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.1313, allocations: 12.02 kB / 331.2 MB, free: 500 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.802e-05/0.1313, allocations: 42.75 kB / 331.2 MB, free: 448 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.1315, allocations: 16.75 kB / 331.2 MB, free: 432 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002472/0.1317, allocations: 200.2 kB / 331.4 MB, free: 192 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.1318, allocations: 12.61 kB / 331.5 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.381e-05/0.1318, allocations: 8.312 kB / 331.5 MB, free: 172 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.1321, allocations: 127.6 kB / 331.6 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.1321, allocations: 0 / 331.6 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.1321, allocations: 4 kB / 331.6 MB, free: 36 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.1321, allocations: 4 kB / 331.6 MB, free: 32 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002174/0.1323, allocations: 84.73 kB / 331.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009224/0.1333, allocations: 0.6048 MB / 332.3 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.1336, allocations: 82.61 kB / 332.4 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.005e-05/0.1337, allocations: 32.98 kB / 332.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.1337, allocations: 0 / 332.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.1337, allocations: 42.55 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.1338, allocations: 0 / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007675/0.1345, allocations: 259.2 kB / 332.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.1346, allocations: 51.41 kB / 332.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.1347, allocations: 145.6 kB / 332.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.1348, allocations: 25.7 kB / 332.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.1349, allocations: 128 kB / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.1349, allocations: 23.59 kB / 333.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.181e-05/0.135, allocations: 29.64 kB / 333.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1351, allocations: 322.8 kB / 333.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.857e-05/0.1352, allocations: 23.92 kB / 333.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.645e-05/0.1353, allocations: 42.56 kB / 333.5 MB, free: 13.97 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.1355, allocations: 74.47 kB / 333.5 MB, free: 13.89 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1355, allocations: 8 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002849/0.1358, allocations: 134.3 kB / 333.7 MB, free: 13.74 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.1358, allocations: 4 kB / 333.7 MB, free: 13.74 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1358, allocations: 0 / 333.7 MB, free: 13.74 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002067/0.136, allocations: 40.83 kB / 333.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.476e-05/0.1361, allocations: 8.062 kB / 333.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.1378, allocations: 1.696 MB / 335.4 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.351e-05/0.1379, allocations: 11.89 kB / 335.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.1379, allocations: 0 / 335.4 MB, free: 11.84 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 0.0001122/0.138, allocations: 125.9 kB / 335.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.068e-05/0.138, allocations: 11.84 kB / 335.6 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.1381, allocations: 12.72 kB / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1381, allocations: 0 / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.1381, allocations: 0 / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1381, allocations: 3.984 kB / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002566/0.1384, allocations: 213.6 kB / 335.8 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1384, allocations: 7.938 kB / 335.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.513e-05/0.1384, allocations: 0 / 335.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001195/0.1385, allocations: 44.83 kB / 335.8 MB, free: 11.37 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.1386, allocations: 0 / 335.8 MB, free: 11.37 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.1398, allocations: 1.681 MB / 337.5 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1399, allocations: 0 / 337.5 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.1402, allocations: 216.2 kB / 337.7 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.495e-05/0.1402, allocations: 85.02 kB / 337.8 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.1403, allocations: 0 / 337.8 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.1404, allocations: 12.17 kB / 337.8 MB, free: 9.207 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.833e-05/0.1404, allocations: 4.047 kB / 337.8 MB, free: 9.203 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.1404, allocations: 7.922 kB / 337.8 MB, free: 9.195 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.293e-05/0.1405, allocations: 123.9 kB / 338 MB, free: 9.074 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.874e-06/0.1405, allocations: 3.938 kB / 338 MB, free: 9.07 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000351/0.1409, allocations: 35.88 kB / 338 MB, free: 9.035 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.0006422/0.1415, allocations: 0.756 MB / 338.8 MB, free: 8.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004311/0.142, allocations: 182.6 kB / 338.9 MB, free: 8.059 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.142, allocations: 0 / 338.9 MB, free: 8.059 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.1422, allocations: 158.7 kB / 339.1 MB, free: 7.891 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.1425, allocations: 16.06 kB / 339.1 MB, free: 7.875 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.1447, allocations: 1.695 MB / 340.8 MB, free: 6.082 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.1451, allocations: 0.7157 MB / 341.5 MB, free: 5.34 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.959e-05/0.1452, allocations: 448 / 341.5 MB, free: 5.34 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.189e-05/0.1452, allocations: 35.42 kB / 341.6 MB, free: 5.305 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1452, allocations: 3.938 kB / 341.6 MB, free: 5.301 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.1719, allocations: 2.948 MB / 344.5 MB, free: 2.293 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.69, allocations: 27.39 kB / 344.5 MB, free: 2.266 MB / 286.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.csv","/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