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.001447/0.001447, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001552/0.001552, allocations: 184.1 kB / 18.66 MB, free: 4.426 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.403/1.403, 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.001162/0.001162, allocations: 51.92 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09524/0.09641, allocations: 46.63 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004183/0.1006, allocations: 2.98 MB / 377.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.1024, allocations: 1.197 MB / 378.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1026, allocations: 7.938 kB / 378.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004567/0.1031, allocations: 175.1 kB / 379 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004122/0.1035, allocations: 182.9 kB / 379.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.1039, allocations: 147.7 kB / 379.3 MB, free: 396 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1925/0.2964, allocations: 442.2 kB / 379.8 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002882/0.2967, allocations: 107 kB / 379.9 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003585/0.2971, allocations: 178.5 kB / 380 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.2973, allocations: 200.8 kB / 380.2 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.544e-05/0.2974, allocations: 28.88 kB / 380.3 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001868/0.2976, allocations: 66.84 kB / 380.3 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.2977, allocations: 87.59 kB / 380.4 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001964/0.2979, allocations: 186.8 kB / 380.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005941/0.2985, allocations: 459.9 kB / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2985, allocations: 0 / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2985, allocations: 0 / 381 MB, free: 9.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.2985, allocations: 0 / 381 MB, free: 9.07 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.0008907/0.2994, allocations: 0.704 MB / 381.7 MB, free: 8.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2995, allocations: 12.44 kB / 381.8 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.755e-05/0.2996, allocations: 70.75 kB / 381.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.49e-05/0.2997, allocations: 48.67 kB / 381.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.3001, allocations: 328.1 kB / 382.2 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.3001, allocations: 26.12 kB / 382.2 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/0.3002, allocations: 28.58 kB / 382.2 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005203/0.3007, allocations: 308.2 kB / 382.5 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.3007, allocations: 2.297 kB / 382.5 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.3008, allocations: 15.22 kB / 382.6 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.3008, allocations: 6.438 kB / 382.6 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004097/0.3012, allocations: 183.8 kB / 382.7 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001256/0.3025, allocations: 0.8631 MB / 383.6 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005388/0.303, allocations: 260.3 kB / 383.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.3032, allocations: 99.48 kB / 384 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.3033, allocations: 5.016 kB / 384 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002934/0.3036, allocations: 166.5 kB / 384.1 MB, free: 7.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=34): time 2.044e-06/0.3036, allocations: 0 / 384.1 MB, free: 7.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002253/0.3058, allocations: 1.33 MB / 385.5 MB, free: 7.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.3059, allocations: 188.3 kB / 385.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/0.3063, allocations: 351.8 kB / 386 MB, free: 6.684 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.3063, allocations: 32.2 kB / 386 MB, free: 6.648 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.3064, allocations: 193 kB / 386.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.588e-05/0.3065, allocations: 150 kB / 386.4 MB, free: 6.367 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.3067, allocations: 73.56 kB / 386.4 MB, free: 6.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.956e-05/0.3068, allocations: 354.4 kB / 386.8 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.3069, allocations: 90.42 kB / 386.9 MB, free: 5.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.3072, allocations: 179.9 kB / 387 MB, free: 5.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004056/0.3076, allocations: 250.6 kB / 387.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3076, allocations: 0 / 387.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005502/0.3082, allocations: 352.9 kB / 387.6 MB, free: 5.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3082, allocations: 6.062 kB / 387.6 MB, free: 5.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.3082, allocations: 1.719 kB / 387.6 MB, free: 5.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.9e-05/0.3083, allocations: 24.7 kB / 387.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003386/0.3086, allocations: 87.89 kB / 387.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008079/0.3095, allocations: 1.401 MB / 389.1 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.3097, allocations: 14.52 kB / 389.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.3097, allocations: 13.69 kB / 389.2 MB, free: 4.098 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.0001548/0.3099, allocations: 174.7 kB / 389.3 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.816e-05/0.3099, allocations: 40.88 kB / 389.4 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.859e-05/0.31, allocations: 53.23 kB / 389.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.31, allocations: 4.656 kB / 389.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.31, allocations: 1.469 kB / 389.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005244/0.3106, allocations: 0.6664 MB / 390.1 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.3117, allocations: 0.852 MB / 391 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3118, allocations: 1.984 kB / 391 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003401/0.3121, allocations: 77.64 kB / 391 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.3121, allocations: 2.312 kB / 391 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.3121, allocations: 9.297 kB / 391 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.3122, allocations: 3.094 kB / 391 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3122, allocations: 1.406 kB / 391 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008148/0.313, allocations: 0.5527 MB / 391.6 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.3131, allocations: 146 kB / 391.7 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.3132, allocations: 9.406 kB / 391.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.3134, allocations: 20.83 kB / 391.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.345e-05/0.3135, allocations: 28.48 kB / 391.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.3135, allocations: 17.97 kB / 391.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002863/0.3138, allocations: 254.3 kB / 392.1 MB, free: 2.125 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3138, allocations: 0 / 392.1 MB, free: 2.125 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004114/0.3143, allocations: 97.39 kB / 392.2 MB, free: 2.109 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.001659/0.3159, allocations: 1.401 MB / 393.6 MB, free: 1.023 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006451/0.3166, allocations: 379.5 kB / 393.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3166, allocations: 1.312 kB / 393.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002213/0.3168, allocations: 141.2 kB / 394.1 MB, free: 0.793 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005949/0.3174, allocations: 108.8 kB / 394.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004702/0.3221, allocations: 3.678 MB / 397.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.3226, allocations: 0.8054 MB / 398.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002124/0.3228, allocations: 46.94 kB / 398.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.323, allocations: 132.6 kB / 398.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of SimCode: time 1.052e-06/0.323, allocations: 0 / 398.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03327/0.3563, allocations: 9.436 MB / 408.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.06, allocations: 13.64 kB / 408.3 MB, free: 10.39 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