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.0008863/0.0008863, allocations: 90.59 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000979/0.0009791, allocations: 199.6 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 227.8 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001928/0.0001928, allocations: 4 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08174/0.08195, allocations: 51.52 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.003276/0.08526, allocations: 2.679 MB / 362 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002473/0.08777, allocations: 1.313 MB / 363.3 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002693/0.08806, allocations: 7.938 kB / 363.4 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004956/0.08857, allocations: 131.4 kB / 363.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005563/0.08915, allocations: 191 kB / 363.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.08946, allocations: 107.8 kB / 363.8 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004172/0.08989, allocations: 429.3 kB / 364.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.09008, allocations: 110.9 kB / 364.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.09027, allocations: 151.3 kB / 364.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.09049, allocations: 179.1 kB / 364.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.668e-05/0.09054, allocations: 20 kB / 364.6 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.09067, allocations: 47.98 kB / 364.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.731e-05/0.09076, allocations: 71.73 kB / 364.8 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.09092, allocations: 200.7 kB / 365 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.09129, allocations: 430.6 kB / 365.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.0913, allocations: 0 / 365.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09131, allocations: 0 / 365.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.09132, allocations: 0 / 365.4 MB, free: 7.148 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.0008113/0.09213, allocations: 0.613 MB / 366 MB, free: 6.488 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.09219, allocations: 15.91 kB / 366 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.0923, allocations: 71.19 kB / 366.1 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.037e-05/0.09238, allocations: 48.38 kB / 366.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.09272, allocations: 324.5 kB / 366.4 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.09275, allocations: 20.94 kB / 366.5 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.397e-05/0.0928, allocations: 27.94 kB / 366.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004459/0.09325, allocations: 311 kB / 366.8 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.09327, allocations: 0 / 366.8 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.09331, allocations: 12 kB / 366.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.527e-06/0.09332, allocations: 8 kB / 366.8 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.09363, allocations: 182.1 kB / 367 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.09481, allocations: 0.8755 MB / 367.9 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004723/0.09529, allocations: 262.7 kB / 368.1 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.09546, allocations: 101.4 kB / 368.2 MB, free: 4.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.0955, allocations: 8.281 kB / 368.2 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.09579, allocations: 166.6 kB / 368.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.923e-06/0.0958, allocations: 0 / 368.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002033/0.09784, allocations: 1.308 MB / 369.7 MB, free: 2.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/0.09793, allocations: 187.9 kB / 369.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.09825, allocations: 332.5 kB / 370.2 MB, free: 1.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.09829, allocations: 33.7 kB / 370.2 MB, free: 1.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.09841, allocations: 192.5 kB / 370.4 MB, free: 1.719 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.631e-05/0.09852, allocations: 141.9 kB / 370.6 MB, free: 1.578 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-05/0.09858, allocations: 45.64 kB / 370.6 MB, free: 1.527 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.0987, allocations: 350.7 kB / 370.9 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.09887, allocations: 88.83 kB / 371 MB, free: 1.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.09909, allocations: 177.3 kB / 371.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.09947, allocations: 250.2 kB / 371.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.09948, allocations: 0 / 371.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005107/0.1, allocations: 350.7 kB / 371.8 MB, free: 276 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.1, allocations: 4 kB / 371.8 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1, allocations: 0 / 371.8 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.506e-05/0.1001, allocations: 20.86 kB / 371.8 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.1004, allocations: 91.89 kB / 371.9 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1399/0.2403, allocations: 1.285 MB / 373.2 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003466/0.2407, allocations: 23.27 kB / 373.2 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.008e-05/0.2408, allocations: 13.33 kB / 373.2 MB, free: 17.51 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.0002504/0.241, allocations: 170.3 kB / 373.4 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-05/0.2411, allocations: 40.98 kB / 373.4 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.828e-05/0.2412, allocations: 46.66 kB / 373.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.2412, allocations: 8.469 kB / 373.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2412, allocations: 3.562 kB / 373.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005448/0.2417, allocations: 0.6592 MB / 374.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.2428, allocations: 0.8503 MB / 375 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.2429, allocations: 1.312 kB / 375 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/0.2432, allocations: 76.8 kB / 375.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.2432, allocations: 3.719 kB / 375.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.2432, allocations: 15.25 kB / 375.1 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.2432, allocations: 5 kB / 375.1 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2432, allocations: 3.062 kB / 375.1 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006686/0.2439, allocations: 0.5391 MB / 375.6 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.244, allocations: 138.6 kB / 375.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.444e-05/0.2441, allocations: 19.45 kB / 375.8 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.2443, allocations: 15.31 kB / 375.8 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.2444, allocations: 23.7 kB / 375.8 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.2444, allocations: 14.34 kB / 375.9 MB, free: 16.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002318/0.2446, allocations: 242.9 kB / 376.1 MB, free: 16.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2446, allocations: 1.062 kB / 376.1 MB, free: 16.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003913/0.245, allocations: 97.78 kB / 376.2 MB, free: 16.17 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.001734/0.2468, allocations: 1.406 MB / 377.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005561/0.2473, allocations: 369.2 kB / 378 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2474, allocations: 1.375 kB / 378 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002319/0.2476, allocations: 136 kB / 378.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005742/0.2482, allocations: 89.64 kB / 378.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004254/0.2524, allocations: 3.942 MB / 382.1 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.2527, allocations: 0.8082 MB / 382.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001903/0.2529, allocations: 42.27 kB / 383 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.2531, allocations: 136 kB / 383.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2531, allocations: 0 / 383.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01975/0.2728, allocations: 8.602 MB / 391.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001364/0.273, allocations: 273.6 kB / 392 MB, free: 9.555 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.157, allocations: 1.375 kB / 392 MB, free: 9.555 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