Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",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.001095/0.001095, allocations: 110.5 kB / 17.73 MB, free: 5.234 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.001147/0.001147, allocations: 183.1 kB / 18.65 MB, free: 4.316 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.457/1.457, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001376/0.001376, allocations: 51.92 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09716/0.09854, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.005384/0.104, allocations: 2.987 MB / 377.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.1062, allocations: 1.193 MB / 378.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002672/0.1065, allocations: 7.938 kB / 378.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005319/0.107, allocations: 175.1 kB / 379 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006011/0.1077, allocations: 178.9 kB / 379.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.1081, allocations: 151.6 kB / 379.3 MB, free: 400 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1873/0.2955, allocations: 439.1 kB / 379.7 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.2958, allocations: 102.2 kB / 379.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003395/0.2962, allocations: 178 kB / 380 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.2964, allocations: 197.9 kB / 380.2 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.255e-05/0.2965, allocations: 29.75 kB / 380.2 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.2967, allocations: 69.25 kB / 380.3 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.679e-05/0.2968, allocations: 87.28 kB / 380.4 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.297, allocations: 189 kB / 380.6 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005555/0.2975, allocations: 455.9 kB / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2975, allocations: 2.438 kB / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2975, allocations: 0 / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.2976, allocations: 0 / 381 MB, free: 9.105 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009332/0.2985, allocations: 0.6924 MB / 381.7 MB, free: 8.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.2985, allocations: 9.625 kB / 381.7 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.23e-05/0.2986, allocations: 69.5 kB / 381.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.737e-05/0.2987, allocations: 47.78 kB / 381.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005024/0.2993, allocations: 320 kB / 382.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.2993, allocations: 22.94 kB / 382.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6e-05/0.2994, allocations: 28.98 kB / 382.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005165/0.2999, allocations: 309.4 kB / 382.5 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.2999, allocations: 6.828 kB / 382.5 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.3, allocations: 12.38 kB / 382.5 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3, allocations: 13.94 kB / 382.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004256/0.3004, allocations: 181.1 kB / 382.7 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.3018, allocations: 0.8625 MB / 383.6 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000559/0.3024, allocations: 258.4 kB / 383.8 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.3025, allocations: 99.78 kB / 383.9 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.021e-05/0.3026, allocations: 4.984 kB / 383.9 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003136/0.3029, allocations: 169.5 kB / 384.1 MB, free: 7.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 2.104e-06/0.3029, allocations: 0 / 384.1 MB, free: 7.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002239/0.3052, allocations: 1.315 MB / 385.4 MB, free: 7.102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.3052, allocations: 189.2 kB / 385.6 MB, free: 6.883 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.3056, allocations: 351.2 kB / 385.9 MB, free: 6.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.3056, allocations: 36.3 kB / 386 MB, free: 6.711 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.3057, allocations: 199.5 kB / 386.2 MB, free: 6.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.095e-05/0.3058, allocations: 137.3 kB / 386.3 MB, free: 6.438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.523e-05/0.3059, allocations: 73.19 kB / 386.4 MB, free: 6.395 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.781e-05/0.306, allocations: 353 kB / 386.7 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.3062, allocations: 89.8 kB / 386.8 MB, free: 6.031 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.3064, allocations: 182.8 kB / 387 MB, free: 5.902 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.3068, allocations: 248.3 kB / 387.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3068, allocations: 1.125 kB / 387.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006213/0.3074, allocations: 351.7 kB / 387.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3074, allocations: 4.531 kB / 387.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3075, allocations: 1.469 kB / 387.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001213/0.3076, allocations: 29.52 kB / 387.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003489/0.3079, allocations: 90.03 kB / 387.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008559/0.3088, allocations: 1.39 MB / 389.1 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.309, allocations: 19.25 kB / 389.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.3091, allocations: 15.89 kB / 389.1 MB, free: 4.168 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002012/0.3093, allocations: 171.2 kB / 389.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/0.3094, allocations: 41.17 kB / 389.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.13e-05/0.3095, allocations: 54.16 kB / 389.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3095, allocations: 7.875 kB / 389.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.3095, allocations: 0 / 389.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005395/0.31, allocations: 0.6569 MB / 390 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.3112, allocations: 0.859 MB / 390.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3112, allocations: 5.156 kB / 390.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/0.3115, allocations: 73.97 kB / 391 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.3115, allocations: 2.844 kB / 391 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.3116, allocations: 11.47 kB / 391 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.3116, allocations: 3.516 kB / 391 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3116, allocations: 2.031 kB / 391 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007423/0.3123, allocations: 0.5516 MB / 391.6 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.3125, allocations: 145.8 kB / 391.7 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/0.3125, allocations: 9.109 kB / 391.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.3128, allocations: 14.44 kB / 391.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.908e-05/0.3128, allocations: 28.22 kB / 391.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.3129, allocations: 19.59 kB / 391.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002649/0.3131, allocations: 259 kB / 392 MB, free: 2.195 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3132, allocations: 0 / 392 MB, free: 2.195 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004392/0.3136, allocations: 96.09 kB / 392.1 MB, free: 2.18 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001694/0.3153, allocations: 1.388 MB / 393.5 MB, free: 1.105 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00065/0.316, allocations: 374.5 kB / 393.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.316, allocations: 5.156 kB / 393.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.3163, allocations: 139.5 kB / 394 MB, free: 0.875 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000958/0.3173, allocations: 109.2 kB / 394.1 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007088/0.3244, allocations: 3.69 MB / 397.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.3249, allocations: 0.8049 MB / 398.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002279/0.3251, allocations: 46.67 kB / 398.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/0.3253, allocations: 132.7 kB / 398.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3253, allocations: 0 / 398.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03439/0.3597, allocations: 9.419 MB / 408.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.15, allocations: 13.64 kB / 408.2 MB, free: 10.46 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches