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.001028/0.001028, allocations: 103.1 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001096, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 59.84 kB / 306.3 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09513, allocations: 50.53 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004739/0.09991, allocations: 3.071 MB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002299/0.1022, allocations: 1.403 MB / 361.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002568/0.1025, allocations: 4 kB / 361.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004965/0.103, allocations: 127.4 kB / 361.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005472/0.1036, allocations: 187 kB / 361.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.1039, allocations: 107.8 kB / 361.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005149/0.1045, allocations: 430 kB / 362.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.1047, allocations: 99.05 kB / 362.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.1049, allocations: 155.3 kB / 362.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000245/0.1052, allocations: 195.1 kB / 362.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.874e-05/0.1052, allocations: 20 kB / 362.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.1054, allocations: 47.98 kB / 362.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.825e-05/0.1055, allocations: 71.7 kB / 362.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.1057, allocations: 182.9 kB / 362.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004079/0.1061, allocations: 430.8 kB / 363.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.1061, allocations: 0 / 363.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1061, allocations: 0 / 363.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1061, allocations: 0 / 363.4 MB, free: 7.668 MB / 302.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.001016/0.1071, allocations: 0.6868 MB / 364 MB, free: 6.934 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1072, allocations: 8.031 kB / 364.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.668e-05/0.1073, allocations: 71.19 kB / 364.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.954e-05/0.1074, allocations: 48.38 kB / 364.2 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.1078, allocations: 312.5 kB / 364.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.1078, allocations: 24.92 kB / 364.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.817e-05/0.1078, allocations: 39.88 kB / 364.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/0.1083, allocations: 299.1 kB / 364.8 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.1084, allocations: 0 / 364.8 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.024e-05/0.1084, allocations: 16 kB / 364.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.1084, allocations: 4 kB / 364.9 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003274/0.1087, allocations: 186.1 kB / 365 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.11, allocations: 0.8715 MB / 365.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005166/0.1106, allocations: 259.4 kB / 366.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.1107, allocations: 101.4 kB / 366.3 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.1108, allocations: 8.266 kB / 366.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003498/0.1111, allocations: 162.6 kB / 366.4 MB, free: 4.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.753e-06/0.1111, allocations: 0 / 366.4 MB, free: 4.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002161/0.1133, allocations: 1.312 MB / 367.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.433e-05/0.1134, allocations: 183.9 kB / 367.9 MB, free: 2.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.1137, allocations: 340.5 kB / 368.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.1138, allocations: 37.7 kB / 368.3 MB, free: 2.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.1139, allocations: 188.5 kB / 368.5 MB, free: 2.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.749e-05/0.114, allocations: 138 kB / 368.6 MB, free: 2.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.1141, allocations: 85.97 kB / 368.7 MB, free: 1.953 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1142, allocations: 354.7 kB / 369 MB, free: 1.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.1144, allocations: 88.83 kB / 369.1 MB, free: 1.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.1146, allocations: 181.3 kB / 369.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.115, allocations: 242.2 kB / 369.5 MB, free: 1.047 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.115, allocations: 0 / 369.5 MB, free: 1.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005369/0.1156, allocations: 354.5 kB / 369.9 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.1156, allocations: 8 kB / 369.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1156, allocations: 0 / 369.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.126e-05/0.1157, allocations: 20.84 kB / 369.9 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.116, allocations: 83.97 kB / 370 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.16/0.276, allocations: 1.294 MB / 371.3 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000275/0.2763, allocations: 13.62 kB / 371.3 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.2764, allocations: 13.53 kB / 371.3 MB, free: 18.93 MB / 302.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.0001911/0.2766, allocations: 169.2 kB / 371.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.976e-05/0.2766, allocations: 42.59 kB / 371.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.535e-05/0.2767, allocations: 48.23 kB / 371.6 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2767, allocations: 4.406 kB / 371.6 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2767, allocations: 1.906 kB / 371.6 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004882/0.2772, allocations: 0.6592 MB / 372.2 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.2783, allocations: 0.8511 MB / 373.1 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2783, allocations: 2.344 kB / 373.1 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.2786, allocations: 78.72 kB / 373.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.2786, allocations: 2.812 kB / 373.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.2786, allocations: 11.61 kB / 373.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.2786, allocations: 3.484 kB / 373.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2786, allocations: 0.9062 kB / 373.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006533/0.2793, allocations: 0.5443 MB / 373.7 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.2794, allocations: 134 kB / 373.9 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.2795, allocations: 9.953 kB / 373.9 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.2797, allocations: 17.12 kB / 373.9 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.818e-05/0.2797, allocations: 32.12 kB / 373.9 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/0.2798, allocations: 13.55 kB / 373.9 MB, free: 17.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000214/0.28, allocations: 243 kB / 374.2 MB, free: 17.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.28, allocations: 0.625 kB / 374.2 MB, free: 17.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003765/0.2804, allocations: 92.25 kB / 374.3 MB, free: 17.57 MB / 302.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.00155/0.2819, allocations: 1.418 MB / 375.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005669/0.2825, allocations: 364.3 kB / 376 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.2825, allocations: 1.062 kB / 376 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.2827, allocations: 136.9 kB / 376.2 MB, free: 16.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.2833, allocations: 94.42 kB / 376.3 MB, free: 16.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.2871, allocations: 3.82 MB / 380.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.2873, allocations: 0.807 MB / 380.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000184/0.2875, allocations: 46.03 kB / 380.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.2876, allocations: 128.6 kB / 381.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2876, allocations: 1.375 kB / 381.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.3078, allocations: 8.824 MB / 389.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/0.308, allocations: 269.8 kB / 390.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.879/2.187, allocations: 3.938 kB / 390.1 MB, free: 10.38 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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