Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.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.001436/0.001436, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001534/0.001534, allocations: 196.8 kB / 24.5 MB, free: 4.008 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.323/1.323, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 179] 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.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 47.92 kB / 371.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2228, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.004301/0.2271, allocations: 3.1 MB / 426.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.2288, allocations: 0.967 MB / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.229, allocations: 15.81 kB / 427.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002485/0.2293, allocations: 91.11 kB / 427.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.2295, allocations: 98.95 kB / 427.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000482/0.2299, allocations: 223.6 kB / 427.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000583/0.2305, allocations: 0.541 MB / 428.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002828/0.2308, allocations: 155.1 kB / 428.6 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.231, allocations: 183.2 kB / 428.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.2312, allocations: 182.9 kB / 428.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.136e-05/0.2313, allocations: 36 kB / 429 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.2314, allocations: 48 kB / 429 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.43e-05/0.2315, allocations: 87.58 kB / 429.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.2317, allocations: 230.7 kB / 429.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006315/0.2323, allocations: 0.5802 MB / 429.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.2323, allocations: 4 kB / 429.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2323, allocations: 0 / 429.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.056e-06/0.2323, allocations: 3.938 kB / 429.9 MB, free: 8.07 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009533/0.2333, allocations: 0.6803 MB / 430.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.2333, allocations: 8.031 kB / 430.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.135e-05/0.2333, allocations: 13.19 kB / 430.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.74e-05/0.2334, allocations: 82.72 kB / 430.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.5e-05/0.2335, allocations: 63.94 kB / 430.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005942/0.2341, allocations: 351.4 kB / 431.1 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.2341, allocations: 33 kB / 431.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.068e-05/0.2342, allocations: 40 kB / 431.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007349/0.2349, allocations: 483.4 kB / 431.6 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.2349, allocations: 11.94 kB / 431.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.235, allocations: 20 kB / 431.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.235, allocations: 15.94 kB / 431.7 MB, free: 6.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004772/0.2355, allocations: 242.2 kB / 431.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002309/0.2378, allocations: 2.75 MB / 434.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004044/0.2382, allocations: 157.5 kB / 434.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.2383, allocations: 68.25 kB / 434.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.362e-05/0.2384, allocations: 19.91 kB / 434.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.2384, allocations: 34.5 kB / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.2384, allocations: 0 / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001212/0.2396, allocations: 0.5479 MB / 435.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.2397, allocations: 59.31 kB / 435.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.24, allocations: 341.6 kB / 435.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.24, allocations: 29.7 kB / 435.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/0.2403, allocations: 307.7 kB / 436.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.535e-05/0.2403, allocations: 71.36 kB / 436.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.796e-05/0.2404, allocations: 69.64 kB / 436.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.2406, allocations: 350.8 kB / 436.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.2407, allocations: 67.89 kB / 436.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.241, allocations: 215.5 kB / 437 MB, free: 0.5547 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacity.mass.T = $START.inverseCapacity.mass.T ($START.directCapacity.heatFlowToTemperature.y = $START.inverseCapacity.mass.T) Notification: Performance of analyzeInitialSystem (initialization): time 0.0008891/0.2418, allocations: 451.3 kB / 437.4 MB, free: 48 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2418, allocations: 0 / 437.4 MB, free: 48 kB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006007/0.2424, allocations: 370.2 kB / 437.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.2425, allocations: 8 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2425, allocations: 4 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001305/0.2426, allocations: 36.78 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.2428, allocations: 75.91 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/0.2442, allocations: 1.543 MB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.2443, allocations: 12 kB / 439.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.2444, allocations: 16 kB / 439.5 MB, free: 13.87 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: inverseCapacity.mass.T = $START.inverseCapacity.mass.T. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (39): * Single equations (assignments): 38 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002075/0.2446, allocations: 173.8 kB / 439.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.694e-05/0.2446, allocations: 35.77 kB / 439.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.438e-05/0.2447, allocations: 35.52 kB / 439.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.2447, allocations: 4 kB / 439.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.2447, allocations: 0 / 439.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2447, allocations: 0 / 439.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009736/0.2457, allocations: 0.686 MB / 440.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2457, allocations: 0 / 440.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.2459, allocations: 35.97 kB / 440.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.579e-05/0.2459, allocations: 20.86 kB / 440.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.2459, allocations: 11.92 kB / 440.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/0.247, allocations: 1.331 MB / 441.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.247, allocations: 0 / 441.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005126/0.2475, allocations: 368.2 kB / 442.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.888e-05/0.2475, allocations: 35.77 kB / 442.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.2476, allocations: 0 / 442.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.2477, allocations: 12.03 kB / 442.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.393e-05/0.2477, allocations: 15.92 kB / 442.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.2477, allocations: 8 kB / 442.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002409/0.248, allocations: 231.2 kB / 442.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.248, allocations: 0 / 442.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004052/0.2484, allocations: 71.98 kB / 442.5 MB, free: 10.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inverseCapacity.mass.T,capacitor3a.T,capacitor3b.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 (15): * Single equations (assignments): 14 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007922/0.2492, allocations: 0.8986 MB / 443.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005594/0.2497, allocations: 321.4 kB / 443.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2497, allocations: 1.375 kB / 443.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002296/0.25, allocations: 182.6 kB / 443.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.2503, allocations: 33.56 kB / 444 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004163/0.2544, allocations: 3.334 MB / 447.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.2549, allocations: 0.8223 MB / 448.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000123/0.255, allocations: 43.25 kB / 448.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.2552, allocations: 155.4 kB / 448.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2552, allocations: 0 / 448.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0315/0.2867, allocations: 6.594 MB / 454.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.19, allocations: 8.047 kB / 454.9 MB, free: 14.07 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.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: 13.419151279958896]