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.001405/0.001405, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.00132/0.001321, allocations: 188.2 kB / 18.66 MB, free: 4.391 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.494/1.494, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001663/0.001663, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.11, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.004133/0.1142, allocations: 2.139 MB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.1153, allocations: 0.4996 MB / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.1154, allocations: 0 / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.1156, allocations: 19.8 kB / 377.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001067/0.1157, allocations: 51.56 kB / 377.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.116, allocations: 39.88 kB / 377.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002094/0.1162, allocations: 155.3 kB / 377.5 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.1164, allocations: 57.44 kB / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.1165, allocations: 63.72 kB / 377.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.1167, allocations: 59.77 kB / 377.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.975e-05/0.1167, allocations: 12 kB / 377.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.786e-05/0.1168, allocations: 27.92 kB / 377.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.802e-05/0.1168, allocations: 31.86 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.374e-05/0.1169, allocations: 67.67 kB / 377.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002707/0.1172, allocations: 163.3 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1172, allocations: 0 / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1172, allocations: 0 / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.1172, allocations: 0 / 378 MB, free: 1.664 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.0007118/0.118, allocations: 451 kB / 378.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.118, allocations: 8.031 kB / 378.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.195e-05/0.1181, allocations: 46.75 kB / 378.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.1182, allocations: 20.83 kB / 378.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/0.1186, allocations: 204.1 kB / 378.7 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.1187, allocations: 8.609 kB / 378.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.1187, allocations: 12.38 kB / 378.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.119, allocations: 123.6 kB / 378.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.119, allocations: 0 / 378.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.119, allocations: 7.938 kB / 378.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.119, allocations: 4 kB / 378.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001988/0.1192, allocations: 88.59 kB / 379 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2342/0.3534, allocations: 0.5913 MB / 379.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000398/0.3539, allocations: 86.36 kB / 379.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.705e-05/0.354, allocations: 33.33 kB / 379.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.354, allocations: 3.656 kB / 379.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.354, allocations: 33.11 kB / 379.7 MB, free: 12.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 3.035e-06/0.3541, allocations: 0 / 379.7 MB, free: 12.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007781/0.3548, allocations: 261.2 kB / 380 MB, free: 12.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.3549, allocations: 51.41 kB / 380 MB, free: 12.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.355, allocations: 145.7 kB / 380.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.355, allocations: 29.14 kB / 380.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.833e-05/0.3551, allocations: 128.7 kB / 380.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.3551, allocations: 19.06 kB / 380.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-05/0.3552, allocations: 24.19 kB / 380.4 MB, free: 12.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.088e-05/0.3553, allocations: 322.5 kB / 380.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.7e-05/0.3553, allocations: 23.34 kB / 380.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.178e-05/0.3554, allocations: 40.86 kB / 380.7 MB, free: 12.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.3555, allocations: 72.59 kB / 380.8 MB, free: 12.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3556, allocations: 1.25 kB / 380.8 MB, free: 12.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000273/0.3558, allocations: 134.2 kB / 380.9 MB, free: 12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.3559, allocations: 8.969 kB / 381 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.3559, allocations: 5.344 kB / 381 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002024/0.3561, allocations: 35.7 kB / 381 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.26e-05/0.3562, allocations: 8.688 kB / 381 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.3575, allocations: 1.693 MB / 382.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.642e-05/0.3576, allocations: 13.98 kB / 382.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.3576, allocations: 5.844 kB / 382.7 MB, free: 10.49 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 8.599e-05/0.3577, allocations: 129.1 kB / 382.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.059e-05/0.3578, allocations: 9.766 kB / 382.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.062e-05/0.3578, allocations: 15.64 kB / 382.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3578, allocations: 1.375 kB / 382.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.3578, allocations: 0 / 382.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.3578, allocations: 0.7969 kB / 382.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.358, allocations: 214 kB / 383.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.358, allocations: 4.422 kB / 383.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.815e-05/0.3581, allocations: 8.297 kB / 383.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001242/0.3582, allocations: 37.92 kB / 383.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.3582, allocations: 3.625 kB / 383.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.3593, allocations: 1.682 MB / 384.8 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3593, allocations: 0.5312 kB / 384.8 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003437/0.3597, allocations: 216.9 kB / 385 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.3597, allocations: 84.14 kB / 385.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.3597, allocations: 1.219 kB / 385.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.3599, allocations: 9.797 kB / 385.1 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.573e-05/0.36, allocations: 14.48 kB / 385.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.36, allocations: 2.016 kB / 385.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.012e-05/0.3601, allocations: 106.9 kB / 385.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3601, allocations: 3.938 kB / 385.2 MB, free: 8.324 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003901/0.3605, allocations: 42.45 kB / 385.3 MB, free: 8.32 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.0005189/0.361, allocations: 0.7484 MB / 386 MB, free: 7.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004711/0.3615, allocations: 196.4 kB / 386.2 MB, free: 7.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.3615, allocations: 4.625 kB / 386.2 MB, free: 7.516 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.3617, allocations: 153.2 kB / 386.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.362, allocations: 13.66 kB / 386.4 MB, free: 7.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.3639, allocations: 1.71 MB / 388.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/0.364, allocations: 0.7135 MB / 388.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.545e-05/0.3641, allocations: 5.234 kB / 388.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.699e-05/0.3641, allocations: 30.27 kB / 388.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3642, allocations: 0 / 388.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0397/0.4039, allocations: 3.052 MB / 391.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.97, allocations: 12.95 kB / 391.9 MB, free: 4.535 MB / 318.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