Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.00127/0.00127, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001367/0.001367, allocations: 188.2 kB / 23.72 MB, free: 4.684 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.362/1.362, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 43.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2295, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004293/0.2338, allocations: 2.896 MB / 425.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.2359, allocations: 1.285 MB / 426.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.236, allocations: 7.938 kB / 426.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004814/0.2365, allocations: 175.1 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004348/0.2369, allocations: 206.8 kB / 427.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004078/0.2373, allocations: 178.7 kB / 427.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005656/0.2379, allocations: 461.9 kB / 427.8 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.2381, allocations: 64.02 kB / 427.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.2383, allocations: 191.3 kB / 428 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/0.2386, allocations: 215.2 kB / 428.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.103e-05/0.2387, allocations: 32 kB / 428.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.2388, allocations: 71.91 kB / 428.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.2389, allocations: 91.62 kB / 428.4 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001881/0.2391, allocations: 194.9 kB / 428.6 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005601/0.2397, allocations: 490.4 kB / 429.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2397, allocations: 0 / 429.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2397, allocations: 0 / 429.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2397, allocations: 0 / 429.1 MB, free: 8.082 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001063/0.2407, allocations: 0.6407 MB / 429.8 MB, free: 7.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.2408, allocations: 8.031 kB / 429.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.608e-05/0.2409, allocations: 59.17 kB / 429.8 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.609e-05/0.241, allocations: 48.66 kB / 429.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005038/0.2415, allocations: 285 kB / 430.1 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.2415, allocations: 16.81 kB / 430.2 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.2415, allocations: 35.81 kB / 430.2 MB, free: 6.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004882/0.242, allocations: 293.5 kB / 430.5 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.242, allocations: 0 / 430.5 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.2421, allocations: 16 kB / 430.5 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.2421, allocations: 4 kB / 430.5 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.2424, allocations: 153.7 kB / 430.7 MB, free: 6.434 MB / 334.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.00136/0.2437, allocations: 0.7964 MB / 431.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.2441, allocations: 176.8 kB / 431.6 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.2443, allocations: 64.84 kB / 431.7 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.2443, allocations: 11.92 kB / 431.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000257/0.2446, allocations: 130.8 kB / 431.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.2446, allocations: 7.938 kB / 431.8 MB, free: 5.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007838/0.2453, allocations: 326 kB / 432.2 MB, free: 4.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001681/0.2455, allocations: 312.4 kB / 432.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004662/0.246, allocations: 437.6 kB / 432.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.246, allocations: 33.7 kB / 432.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.2462, allocations: 200.5 kB / 433.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.2462, allocations: 91.25 kB / 433.2 MB, free: 3.695 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.042e-05/0.2463, allocations: 57.7 kB / 433.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.2465, allocations: 346.8 kB / 433.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.2466, allocations: 59.97 kB / 433.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.2469, allocations: 183.9 kB / 433.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.2472, allocations: 175.3 kB / 434 MB, free: 2.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2472, allocations: 0 / 434 MB, free: 2.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004582/0.2476, allocations: 270.1 kB / 434.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2477, allocations: 8 kB / 434.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2477, allocations: 0 / 434.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001238/0.2478, allocations: 32.84 kB / 434.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.248, allocations: 59.94 kB / 434.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.2495, allocations: 1.476 MB / 435.8 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.2497, allocations: 27.86 kB / 435.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.2497, allocations: 16 kB / 435.9 MB, free: 0.8125 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (27): * Single equations (assignments): 26 * 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 {(3,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.2499, allocations: 162 kB / 436 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.273e-05/0.2499, allocations: 47.66 kB / 436.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004698/0.2504, allocations: 262 kB / 436.3 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2504, allocations: 4 kB / 436.4 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.2504, allocations: 0 / 436.4 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005388/0.251, allocations: 0.5777 MB / 436.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009008/0.2519, allocations: 0.6758 MB / 437.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2519, allocations: 0 / 437.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/0.2521, allocations: 43.97 kB / 437.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.2521, allocations: 4 kB / 437.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.2521, allocations: 4 kB / 437.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.2521, allocations: 3.938 kB / 437.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2521, allocations: 0 / 437.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005753/0.2527, allocations: 413.6 kB / 438.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.2528, allocations: 59.77 kB / 438.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.284e-05/0.2529, allocations: 12 kB / 438.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.2531, allocations: 11.98 kB / 438.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.2531, allocations: 11.98 kB / 438.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.2531, allocations: 7.984 kB / 438.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003311/0.2535, allocations: 307.2 kB / 438.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2535, allocations: 0 / 438.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003901/0.2538, allocations: 111.9 kB / 438.6 MB, free: 13.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * 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 (23): * Single equations (assignments): 21 * 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.002278/0.2561, allocations: 1.245 MB / 439.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006122/0.2567, allocations: 310.5 kB / 440.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.2567, allocations: 4 kB / 440.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001516/0.2569, allocations: 71.91 kB / 440.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005442/0.2574, allocations: 117.5 kB / 440.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004546/0.262, allocations: 3.352 MB / 443.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004417/0.2624, allocations: 0.796 MB / 444.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001614/0.2626, allocations: 42.95 kB / 444.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.2628, allocations: 127.4 kB / 444.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2628, allocations: 0 / 444.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04457/0.3073, allocations: 10.43 MB / 455.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/12.93, allocations: 10.92 kB / 455.1 MB, free: 13.59 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --stepSize=0.000299581 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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: 15.31677730102092]