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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001448/0.001448, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001594/0.001594, allocations: 211 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 230.5 MB / 258.2 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 59.89 kB / 378.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2091, allocations: 53.41 MB / 432 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004178/0.2133, allocations: 3.05 MB / 435 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002217/0.2155, allocations: 1.445 MB / 436.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.2156, allocations: 7.938 kB / 436.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004066/0.216, allocations: 139.2 kB / 436.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004536/0.2165, allocations: 214.8 kB / 436.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002892/0.2167, allocations: 147.6 kB / 437 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004799/0.2172, allocations: 438.1 kB / 437.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.2174, allocations: 82.38 kB / 437.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002195/0.2176, allocations: 183.3 kB / 437.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002524/0.2179, allocations: 191.1 kB / 437.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.378e-05/0.2179, allocations: 32 kB / 437.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.218, allocations: 63.97 kB / 437.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.851e-05/0.2181, allocations: 83.62 kB / 438 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.2183, allocations: 191 kB / 438.2 MB, free: 432 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005064/0.2188, allocations: 450.1 kB / 438.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2188, allocations: 0 / 438.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2188, allocations: 0 / 438.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.2188, allocations: 4 kB / 438.6 MB, free: 15.97 MB / 350.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.0009451/0.2197, allocations: 0.6187 MB / 439.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2198, allocations: 12.03 kB / 439.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.697e-05/0.2198, allocations: 12.78 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.037e-05/0.2199, allocations: 71.38 kB / 439.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.272e-05/0.22, allocations: 56.55 kB / 439.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004154/0.2204, allocations: 278.9 kB / 439.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.2204, allocations: 21.03 kB / 439.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.421e-05/0.2205, allocations: 32.33 kB / 439.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005039/0.221, allocations: 324.4 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.221, allocations: 8 kB / 440 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.221, allocations: 12 kB / 440.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.221, allocations: 8 kB / 440.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003465/0.2214, allocations: 198.5 kB / 440.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.2228, allocations: 0.8788 MB / 441.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005287/0.2233, allocations: 268 kB / 441.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.2235, allocations: 115.5 kB / 441.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.2235, allocations: 8 kB / 441.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003321/0.2238, allocations: 203.8 kB / 441.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.723e-06/0.2238, allocations: 0 / 441.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=60): time 0.003508/0.2274, allocations: 1.71 MB / 443.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.2275, allocations: 188.4 kB / 443.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003451/0.2278, allocations: 340.5 kB / 443.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.05e-05/0.2278, allocations: 37.7 kB / 444 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.228, allocations: 181.1 kB / 444.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.2281, allocations: 218.1 kB / 444.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.2283, allocations: 94.34 kB / 444.5 MB, free: 9.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.2284, allocations: 362.7 kB / 444.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/0.2286, allocations: 117.3 kB / 444.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.229, allocations: 227.7 kB / 445.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005135/0.2295, allocations: 344.7 kB / 445.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2295, allocations: 0 / 445.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006895/0.2302, allocations: 453.8 kB / 445.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2302, allocations: 11.94 kB / 445.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2302, allocations: 4.109 kB / 446 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.125e-05/0.2302, allocations: 20.86 kB / 446 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004433/0.2307, allocations: 131.8 kB / 446.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.2318, allocations: 1.287 MB / 447.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.232, allocations: 12 kB / 447.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.232, allocations: 24 kB / 447.4 MB, free: 6.691 MB / 350.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 (69): * Single equations (assignments): 68 * 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.0001979/0.2322, allocations: 176.5 kB / 447.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.972e-05/0.2323, allocations: 59.7 kB / 447.7 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007467/0.233, allocations: 459.4 kB / 448.1 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.233, allocations: 8 kB / 448.1 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.233, allocations: 0 / 448.1 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008018/0.2338, allocations: 0.7508 MB / 448.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.2355, allocations: 1.073 MB / 449.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.2356, allocations: 3.938 kB / 449.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004847/0.236, allocations: 123.8 kB / 450.1 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.236, allocations: 4.188 kB / 450.1 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.2361, allocations: 16 kB / 450.1 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.2361, allocations: 4 kB / 450.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.2361, allocations: 4 kB / 450.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.2371, allocations: 0.7288 MB / 450.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.2372, allocations: 75.67 kB / 450.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.843e-05/0.2373, allocations: 12 kB / 450.9 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.2375, allocations: 19.98 kB / 450.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.2376, allocations: 36.44 kB / 451 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.595e-05/0.2376, allocations: 19.98 kB / 451 MB, free: 2.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002454/0.2379, allocations: 247 kB / 451.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2379, allocations: 0 / 451.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004195/0.2383, allocations: 123.9 kB / 451.3 MB, free: 2.543 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 5 ($outputAlias_s1,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 (61): * Single equations (assignments): 59 * 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.002625/0.2409, allocations: 1.597 MB / 452.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007459/0.2417, allocations: 462.1 kB / 453.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2417, allocations: 0 / 453.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.2419, allocations: 178.8 kB / 453.6 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000564/0.2425, allocations: 111 kB / 453.7 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0053/0.2478, allocations: 4.085 MB / 457.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00046/0.2483, allocations: 0.829 MB / 458.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002357/0.2485, allocations: 63.41 kB / 458.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000221/0.2487, allocations: 155.4 kB / 458.8 MB, free: 11 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2487, allocations: 0 / 458.8 MB, free: 11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03732/0.286, allocations: 11.04 MB / 469.8 MB, free: 72 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.81, allocations: 15.98 kB / 469.9 MB, free: 56 kB / 366.1 MB " [Timeout remaining time 647] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "Error: Could not read variable cylinder1.m in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat. Warning: Get data of variable cylinder1.m from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.154438994009979]