Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001178/0.001178, allocations: 119.5 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2902, allocations: 50.55 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004347/0.2945, allocations: 3.017 MB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002474/0.297, allocations: 1.399 MB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002997/0.2974, allocations: 11.88 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005463/0.2979, allocations: 139.2 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007127/0.2987, allocations: 226.7 kB / 413.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.2991, allocations: 135.6 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006162/0.2997, allocations: 438.2 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.3, allocations: 115.8 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.3002, allocations: 179.3 kB / 414.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.3005, allocations: 187.1 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.281e-05/0.3006, allocations: 32 kB / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.3007, allocations: 55.98 kB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.3009, allocations: 79.69 kB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001957/0.3011, allocations: 194.9 kB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005244/0.3016, allocations: 457 kB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3016, allocations: 3.938 kB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3016, allocations: 0 / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.3016, allocations: 0 / 415.4 MB, free: 10.88 MB / 334.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.001183/0.3028, allocations: 0.6942 MB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3029, allocations: 12.03 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.303, allocations: 67.23 kB / 416.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.3031, allocations: 52.61 kB / 416.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005053/0.3036, allocations: 324.8 kB / 416.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.3036, allocations: 24.92 kB / 416.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.3037, allocations: 31.94 kB / 416.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004778/0.3042, allocations: 299.1 kB / 416.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.3042, allocations: 15.94 kB / 416.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.3043, allocations: 15.94 kB / 416.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.3043, allocations: 8 kB / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003365/0.3046, allocations: 178.1 kB / 417.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.3059, allocations: 0.8679 MB / 417.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000528/0.3065, allocations: 251.4 kB / 418.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.3066, allocations: 101.4 kB / 418.3 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.3067, allocations: 8.266 kB / 418.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000287/0.307, allocations: 167.1 kB / 418.5 MB, free: 7.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 1.733e-06/0.307, allocations: 0 / 418.5 MB, free: 7.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002218/0.3092, allocations: 1.328 MB / 419.8 MB, free: 6.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.288e-05/0.3093, allocations: 187.9 kB / 420 MB, free: 5.914 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/0.3096, allocations: 332.5 kB / 420.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.3097, allocations: 33.7 kB / 420.3 MB, free: 5.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.3098, allocations: 200.6 kB / 420.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.3099, allocations: 138.8 kB / 420.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.995e-05/0.31, allocations: 74.12 kB / 420.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3102, allocations: 354.7 kB / 421.1 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.3104, allocations: 92.83 kB / 421.2 MB, free: 4.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.3106, allocations: 181.3 kB / 421.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.311, allocations: 246.2 kB / 421.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.311, allocations: 0 / 421.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005373/0.3115, allocations: 354.7 kB / 421.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.3115, allocations: 4 kB / 421.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.3116, allocations: 8.125 kB / 421.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.116e-05/0.3116, allocations: 20.84 kB / 422 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003195/0.312, allocations: 91.84 kB / 422.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.313, allocations: 1.39 MB / 423.4 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.3132, allocations: 15.98 kB / 423.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.3133, allocations: 11.94 kB / 423.5 MB, free: 2.184 MB / 334.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.0001733/0.3134, allocations: 168 kB / 423.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.674e-05/0.3135, allocations: 51.78 kB / 423.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.4e-05/0.3136, allocations: 47.95 kB / 423.7 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3136, allocations: 4 kB / 423.7 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3136, allocations: 4.062 kB / 423.7 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005649/0.3142, allocations: 0.6572 MB / 424.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.3153, allocations: 0.85 MB / 425.2 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3153, allocations: 4 kB / 425.3 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/0.3156, allocations: 75.91 kB / 425.3 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.3156, allocations: 0 / 425.3 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.3156, allocations: 11.98 kB / 425.3 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3156, allocations: 4 kB / 425.3 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3156, allocations: 3.938 kB / 425.3 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007293/0.3164, allocations: 0.5621 MB / 425.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.3165, allocations: 128.9 kB / 426 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.079e-05/0.3166, allocations: 15.98 kB / 426 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.3168, allocations: 15.98 kB / 426.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.671e-05/0.3169, allocations: 31.91 kB / 426.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.3169, allocations: 19.98 kB / 426.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002268/0.3171, allocations: 239.1 kB / 426.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3171, allocations: 0 / 426.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003848/0.3175, allocations: 99.92 kB / 426.4 MB, free: 14.97 MB / 350.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.001737/0.3193, allocations: 1.385 MB / 427.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005972/0.3199, allocations: 382.3 kB / 428.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3199, allocations: 4.062 kB / 428.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.3201, allocations: 139.6 kB / 428.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005476/0.3207, allocations: 99.72 kB / 428.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004472/0.3252, allocations: 3.654 MB / 432.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.3256, allocations: 0.8002 MB / 432.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001647/0.3257, allocations: 55.23 kB / 432.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.3259, allocations: 131.4 kB / 433.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of SimCode: time 1.082e-06/0.326, allocations: 0 / 433.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03157/0.3575, allocations: 9.381 MB / 442.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.68, allocations: 19.05 kB / 442.5 MB, free: 15.07 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches