Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008329/0.0008329, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008623/0.0008623, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8429/0.8429, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.488e-06/1.078e-05, allocations: 5.375 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003449/0.003459, allocations: 4.53 MB / 329.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.005461, allocations: 1.289 MB / 330.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/0.005761, allocations: 11.94 kB / 330.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003284/0.006089, allocations: 158.6 kB / 330.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004729/0.006562, allocations: 356.9 kB / 330.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.006898, allocations: 235.6 kB / 331.1 MB, free: 9.355 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000758/0.007656, allocations: 1.226 MB / 332.3 MB, free: 8.129 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002585/0.007915, allocations: 210.5 kB / 332.6 MB, free: 7.914 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004948/0.00841, allocations: 0.6783 MB / 333.2 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003361/0.008746, allocations: 379 kB / 333.6 MB, free: 6.863 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.008846, allocations: 107.9 kB / 333.7 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.008949, allocations: 108 kB / 333.8 MB, free: 6.652 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.009075, allocations: 231.2 kB / 334 MB, free: 6.426 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002443/0.009319, allocations: 383.2 kB / 334.4 MB, free: 6.051 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007679/0.01009, allocations: 1.25 MB / 335.7 MB, free: 4.797 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.01009, allocations: 0 / 335.7 MB, free: 4.797 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.01009, allocations: 0 / 335.7 MB, free: 4.797 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.0101, allocations: 0 / 335.7 MB, free: 4.797 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001699/0.0118, allocations: 1.287 MB / 337 MB, free: 3.457 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.01184, allocations: 12.03 kB / 337 MB, free: 3.445 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000126/0.01196, allocations: 119.8 kB / 337.1 MB, free: 3.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.01208, allocations: 116.3 kB / 337.2 MB, free: 3.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006174/0.0127, allocations: 0.5382 MB / 337.7 MB, free: 2.645 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.01285, allocations: 305.2 kB / 338 MB, free: 2.289 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.327e-05/0.01292, allocations: 56.38 kB / 338.1 MB, free: 2.234 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.01397, allocations: 1.62 MB / 339.7 MB, free: 332 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.01398, allocations: 0 / 339.7 MB, free: 332 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.01403, allocations: 28 kB / 339.7 MB, free: 304 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.01403, allocations: 16 kB / 339.7 MB, free: 288 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008219/0.01486, allocations: 0.6062 MB / 340.4 MB, free: 15.67 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.01682, allocations: 1.635 MB / 342 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007452/0.01756, allocations: 0.5905 MB / 342.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004491/0.01801, allocations: 355.8 kB / 342.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.942e-05/0.01805, allocations: 12.64 kB / 342.9 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.01807, allocations: 51.16 kB / 343 MB, free: 12.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=73): time 1.753e-06/0.01808, allocations: 0 / 343 MB, free: 12.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=73): time 0.002864/0.02094, allocations: 1.488 MB / 344.5 MB, free: 11.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002313/0.02117, allocations: 0.8234 MB / 345.3 MB, free: 10.44 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004724/0.02164, allocations: 0.6293 MB / 345.9 MB, free: 9.797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.435e-05/0.02169, allocations: 45.7 kB / 346 MB, free: 9.746 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.02186, allocations: 353.2 kB / 346.3 MB, free: 9.395 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.02199, allocations: 261.7 kB / 346.6 MB, free: 9.137 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.02213, allocations: 146.7 kB / 346.7 MB, free: 8.988 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.02224, allocations: 386.7 kB / 347.1 MB, free: 8.602 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004113/0.02265, allocations: 355 kB / 347.4 MB, free: 8.234 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007603/0.02341, allocations: 1.387 MB / 348.8 MB, free: 6.547 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008017/0.02421, allocations: 0.6817 MB / 349.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.02422, allocations: 0 / 349.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001669/0.02589, allocations: 1.17 MB / 350.7 MB, free: 4.609 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.02593, allocations: 89.11 kB / 350.8 MB, free: 4.504 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.02593, allocations: 0 / 350.8 MB, free: 4.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003998/0.02633, allocations: 235.2 kB / 351 MB, free: 4.262 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00031/0.02664, allocations: 143.8 kB / 351.1 MB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004484/0.03113, allocations: 6.468 MB / 357.6 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003763/0.0315, allocations: 99.52 kB / 357.7 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.03154, allocations: 20 kB / 357.7 MB, free: 13.07 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002061/0.03174, allocations: 225.7 kB / 357.9 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.232e-05/0.03182, allocations: 87.48 kB / 358 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.793e-05/0.03191, allocations: 95.33 kB / 358.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.03191, allocations: 7.938 kB / 358.1 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.03192, allocations: 11.88 kB / 358.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001322/0.03324, allocations: 1.225 MB / 359.4 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/0.03532, allocations: 1.736 MB / 361.1 MB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.03532, allocations: 0 / 361.1 MB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003328/0.03565, allocations: 143.8 kB / 361.2 MB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002849/0.03594, allocations: 194.5 kB / 361.4 MB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.03597, allocations: 16 kB / 361.4 MB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003623/0.03959, allocations: 5 MB / 366.4 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.03959, allocations: 0 / 366.4 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.04136, allocations: 1.4 MB / 367.8 MB, free: 2.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.04158, allocations: 171.3 kB / 368 MB, free: 2.215 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.876e-05/0.04163, allocations: 20 kB / 368 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.04195, allocations: 43.95 kB / 368.1 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.04207, allocations: 68.53 kB / 368.1 MB, free: 2.086 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.04209, allocations: 20 kB / 368.2 MB, free: 2.066 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003631/0.04246, allocations: 455 kB / 368.6 MB, free: 1.629 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04246, allocations: 0 / 368.6 MB, free: 1.629 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005572/0.04301, allocations: 287.7 kB / 368.9 MB, free: 1.348 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001994/0.04501, allocations: 1.966 MB / 370.9 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.04652, allocations: 1.392 MB / 372.2 MB, free: 13.85 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.04653, allocations: 4 kB / 372.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006941/0.04722, allocations: 0.7495 MB / 373 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005996/0.04782, allocations: 241.6 kB / 373.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007873/0.05569, allocations: 7.804 MB / 381 MB, free: 4.766 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.0559, allocations: 354.2 kB / 381.4 MB, free: 4.391 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002476/0.05615, allocations: 106.4 kB / 381.5 MB, free: 4.281 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002601/0.05641, allocations: 304.4 kB / 381.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of SimCode: time 6.11e-07/0.05641, allocations: 0 / 381.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04249/0.0989, allocations: 28.3 MB / 410.1 MB, free: 8.117 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.055/8.154, allocations: 10.14 kB / 410.1 MB, free: 8.113 MB / 378.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.757284821011126]