Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 47.92 kB / 370.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.221, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006329/0.2273, allocations: 5.074 MB / 427.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002239/0.2296, allocations: 1.297 MB / 429 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002611/0.2298, allocations: 15.88 kB / 429 MB, free: 8.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000469/0.2303, allocations: 170.5 kB / 429.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006007/0.2309, allocations: 333.2 kB / 429.5 MB, free: 7.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000433/0.2313, allocations: 227.7 kB / 429.7 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001278/0.2326, allocations: 1.176 MB / 430.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003535/0.233, allocations: 219.5 kB / 431.1 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000528/0.2335, allocations: 470.4 kB / 431.6 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006219/0.2341, allocations: 0.5096 MB / 432.1 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00014/0.2343, allocations: 108 kB / 432.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.2344, allocations: 104 kB / 432.3 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.2346, allocations: 231.2 kB / 432.5 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004872/0.2351, allocations: 0.5134 MB / 433 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.2363, allocations: 1.206 MB / 434.2 MB, free: 2.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2363, allocations: 0 / 434.2 MB, free: 2.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2363, allocations: 4 kB / 434.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.2364, allocations: 3.938 kB / 434.2 MB, free: 2.922 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002442/0.2388, allocations: 1.296 MB / 435.5 MB, free: 1.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.2388, allocations: 12.03 kB / 435.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001654/0.239, allocations: 108 kB / 435.7 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.2392, allocations: 116.3 kB / 435.8 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.2402, allocations: 0.5468 MB / 436.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002825/0.2405, allocations: 297.2 kB / 436.6 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-05/0.2406, allocations: 63.92 kB / 436.7 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.2421, allocations: 0.8627 MB / 437.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.2421, allocations: 0 / 437.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.677e-05/0.2422, allocations: 28 kB / 437.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.2422, allocations: 12 kB / 437.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001397/0.2436, allocations: 0.614 MB / 438.2 MB, free: 14.73 MB / 350.1 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.003497/0.2471, allocations: 2.035 MB / 440.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.2484, allocations: 0.5895 MB / 440.8 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007644/0.2491, allocations: 363.4 kB / 441.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.883e-05/0.2492, allocations: 16.64 kB / 441.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/0.2492, allocations: 47.22 kB / 441.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.194e-06/0.2492, allocations: 3.938 kB / 441.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004818/0.2541, allocations: 1.484 MB / 442.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004717/0.2545, allocations: 0.8234 MB / 443.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008312/0.2554, allocations: 0.637 MB / 444.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.112e-05/0.2554, allocations: 41.7 kB / 444.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002937/0.2557, allocations: 357.2 kB / 444.6 MB, free: 8.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000234/0.256, allocations: 269.7 kB / 444.8 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.2562, allocations: 146.6 kB / 445 MB, free: 7.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.2564, allocations: 390.8 kB / 445.4 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006366/0.257, allocations: 265.8 kB / 445.6 MB, free: 6.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009338/0.258, allocations: 0.5507 MB / 446.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.2593, allocations: 0.6817 MB / 446.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.2593, allocations: 4 kB / 446.9 MB, free: 5.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002567/0.2619, allocations: 1.091 MB / 447.9 MB, free: 4.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.396e-05/0.262, allocations: 92.39 kB / 448 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.262, allocations: 0 / 448 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006664/0.2626, allocations: 235.2 kB / 448.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/0.2633, allocations: 139.8 kB / 448.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00806/0.2713, allocations: 6.522 MB / 454.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007868/0.2721, allocations: 103.6 kB / 455 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.84e-05/0.2722, allocations: 27.98 kB / 455 MB, free: 12.86 MB / 366.1 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.0003451/0.2725, allocations: 221.7 kB / 455.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.2727, allocations: 91.42 kB / 455.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001745/0.2728, allocations: 87.34 kB / 455.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.2728, allocations: 4 kB / 455.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2728, allocations: 0 / 455.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002455/0.2753, allocations: 1.237 MB / 456.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003724/0.279, allocations: 1.892 MB / 458.6 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.279, allocations: 8 kB / 458.6 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006637/0.2797, allocations: 139.8 kB / 458.7 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005227/0.2802, allocations: 206.4 kB / 458.9 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.367e-05/0.2803, allocations: 19.94 kB / 458.9 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006671/0.2869, allocations: 5.04 MB / 464 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2869, allocations: 3.938 kB / 464 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003306/0.2902, allocations: 1.392 MB / 465.4 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003973/0.2906, allocations: 163.2 kB / 465.5 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.2907, allocations: 23.98 kB / 465.6 MB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006169/0.2914, allocations: 47.95 kB / 465.6 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.2915, allocations: 64.53 kB / 465.7 MB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.089e-05/0.2916, allocations: 16 kB / 465.7 MB, free: 1.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005613/0.2921, allocations: 467 kB / 466.1 MB, free: 1.203 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2921, allocations: 4 kB / 466.1 MB, free: 1.199 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008127/0.2929, allocations: 283.7 kB / 466.4 MB, free: 0.9219 MB / 366.1 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.003562/0.2965, allocations: 1.959 MB / 468.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.2987, allocations: 1.313 MB / 469.7 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.2988, allocations: 4 kB / 469.7 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.3001, allocations: 0.7495 MB / 470.4 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.3012, allocations: 227 kB / 470.7 MB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/0.3141, allocations: 7.539 MB / 478.2 MB, free: 4.785 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005918/0.3146, allocations: 0.9479 MB / 479.2 MB, free: 3.812 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004362/0.3151, allocations: 102.4 kB / 479.3 MB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004047/0.3155, allocations: 307.3 kB / 479.6 MB, free: 3.406 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3155, allocations: 0 / 479.6 MB, free: 3.406 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0738/0.3893, allocations: 26.6 MB / 0.4943 GB, free: 9.219 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/13.93, allocations: 11.62 kB / 0.4943 GB, free: 9.211 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 16.217490802053362]