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.00119/0.00119, allocations: 109.2 kB / 17.73 MB, free: 5.312 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.00109/0.00109, allocations: 188.2 kB / 18.67 MB, free: 4.383 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.611/1.611, allocations: 205.1 MB / 224.5 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.001448/0.001448, allocations: 63.91 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1125, allocations: 46.61 MB / 374.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.004522/0.1171, allocations: 2.131 MB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1183, allocations: 0.5073 MB / 377.3 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.1186, allocations: 4 kB / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.1188, allocations: 19.8 kB / 377.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.119, allocations: 47.56 kB / 377.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.1194, allocations: 43.89 kB / 377.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003168/0.1197, allocations: 155.2 kB / 377.5 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.1199, allocations: 61.44 kB / 377.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.1201, allocations: 55.73 kB / 377.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.1203, allocations: 67.75 kB / 377.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.705e-05/0.1203, allocations: 12 kB / 377.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.864e-05/0.1205, allocations: 23.98 kB / 377.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.564e-05/0.1205, allocations: 31.86 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1206, allocations: 71.61 kB / 377.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003337/0.121, allocations: 159.3 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.121, allocations: 0 / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.121, allocations: 0 / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.121, 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.0008374/0.1219, allocations: 443 kB / 378.5 MB, free: 1.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1219, allocations: 12.03 kB / 378.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.822e-05/0.122, allocations: 46.75 kB / 378.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.1221, allocations: 20.83 kB / 378.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003782/0.1225, allocations: 208.1 kB / 378.7 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.1225, allocations: 8.609 kB / 378.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.552e-05/0.1226, allocations: 8.375 kB / 378.7 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/0.1229, allocations: 127.6 kB / 378.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.1229, allocations: 0 / 378.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.1229, allocations: 11.98 kB / 378.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.1229, allocations: 4 kB / 378.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.1231, allocations: 76.67 kB / 379 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2177/0.3408, allocations: 0.5954 MB / 379.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003658/0.3412, allocations: 85.23 kB / 379.6 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.971e-05/0.3413, allocations: 32.44 kB / 379.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.3414, allocations: 3.781 kB / 379.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.3414, allocations: 31.72 kB / 379.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 2.535e-06/0.3414, allocations: 0 / 379.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007304/0.3421, allocations: 260.7 kB / 380 MB, free: 12.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.3422, allocations: 56.03 kB / 380 MB, free: 12.67 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.3423, allocations: 147.7 kB / 380.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.3424, allocations: 28.7 kB / 380.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.293e-05/0.3424, allocations: 128.1 kB / 380.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.3425, allocations: 24.23 kB / 380.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.3425, allocations: 22.83 kB / 380.4 MB, free: 12.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.613e-05/0.3426, allocations: 319.5 kB / 380.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.347e-05/0.3427, allocations: 23.39 kB / 380.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.836e-05/0.3428, allocations: 42.28 kB / 380.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.343, allocations: 75.17 kB / 380.8 MB, free: 12.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.343, allocations: 0 / 380.8 MB, free: 12.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003319/0.3433, allocations: 132.5 kB / 380.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3433, allocations: 5.5 kB / 380.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3434, allocations: 3.719 kB / 380.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000206/0.3436, allocations: 35.69 kB / 381 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.292e-05/0.3436, allocations: 11.11 kB / 381 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.345, allocations: 1.691 MB / 382.7 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.322e-05/0.3451, allocations: 13.22 kB / 382.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.3451, allocations: 4.594 kB / 382.7 MB, free: 10.5 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 9.086e-05/0.3452, allocations: 137.3 kB / 382.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.058e-05/0.3453, allocations: 9.047 kB / 382.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.3453, allocations: 12.25 kB / 382.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3453, allocations: 1.078 kB / 382.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3453, allocations: 0.875 kB / 382.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.3453, allocations: 2.781 kB / 382.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.3455, allocations: 220.3 kB / 383.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3455, allocations: 1.375 kB / 383.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.929e-05/0.3456, allocations: 4.484 kB / 383.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001212/0.3457, allocations: 36.95 kB / 383.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.3457, allocations: 0 / 383.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.3468, allocations: 1.684 MB / 384.8 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3469, allocations: 0 / 384.8 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.3472, allocations: 219.5 kB / 385 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.494e-05/0.3472, allocations: 87.03 kB / 385.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.3473, allocations: 1.109 kB / 385.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.3474, allocations: 10.33 kB / 385.1 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.531e-05/0.3474, allocations: 13.45 kB / 385.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-06/0.3474, allocations: 1.688 kB / 385.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.413e-05/0.3475, allocations: 106.7 kB / 385.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.32e-07/0.3476, allocations: 1.594 kB / 385.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003815/0.3479, allocations: 43.2 kB / 385.3 MB, free: 8.344 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.0004879/0.3484, allocations: 0.7522 MB / 386 MB, free: 7.664 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000427/0.3489, allocations: 187.8 kB / 386.2 MB, free: 7.535 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3489, allocations: 0.6562 kB / 386.2 MB, free: 7.535 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002162/0.3491, allocations: 161.7 kB / 386.4 MB, free: 7.406 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.3494, allocations: 14.11 kB / 386.4 MB, free: 7.398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.3512, allocations: 1.715 MB / 388.1 MB, free: 5.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.3514, allocations: 0.7136 MB / 388.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.469e-05/0.3515, allocations: 4.75 kB / 388.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.237e-05/0.3515, allocations: 33.45 kB / 388.9 MB, free: 5.25 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3516, allocations: 0 / 388.9 MB, free: 5.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02631/0.3779, allocations: 3.051 MB / 391.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/12.81, allocations: 8.922 kB / 391.9 MB, free: 4.539 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