Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.001548/0.001548, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 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.001796/0.001796, allocations: 212.6 kB / 24.51 MB, free: 3.941 MB / 14.72 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 1.348/1.348, allocations: 230.6 MB / 258.3 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 43.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2212, allocations: 53.36 MB / 431.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002738/0.224, allocations: 1.605 MB / 433.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008577/0.2248, allocations: 0.5183 MB / 434 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.057e-05/0.2249, allocations: 4 kB / 434 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.496e-05/0.2249, allocations: 7.875 kB / 434 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.519e-05/0.225, allocations: 23.78 kB / 434 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001902/0.2252, allocations: 35.89 kB / 434 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.2253, allocations: 103.5 kB / 434.1 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.2254, allocations: 34.08 kB / 434.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.821e-05/0.2255, allocations: 31.94 kB / 434.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.006e-05/0.2256, allocations: 35.84 kB / 434.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.2256, allocations: 8 kB / 434.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.618e-05/0.2257, allocations: 19.94 kB / 434.3 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.56e-05/0.2257, allocations: 19.92 kB / 434.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.815e-05/0.2257, allocations: 39.84 kB / 434.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.2259, allocations: 95.62 kB / 434.4 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2259, allocations: 4 kB / 434.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2259, allocations: 4 kB / 434.4 MB, free: 4.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.2259, allocations: 0 / 434.4 MB, free: 4.043 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004277/0.2263, allocations: 302.1 kB / 434.7 MB, free: 3.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2264, allocations: 16.02 kB / 434.7 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.641e-05/0.2264, allocations: 192 / 434.7 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.171e-05/0.2264, allocations: 38.75 kB / 434.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.2265, allocations: 12.89 kB / 434.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.2266, allocations: 122.4 kB / 434.9 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.2266, allocations: 8.375 kB / 434.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.2267, allocations: 8.375 kB / 434.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/0.2268, allocations: 92.12 kB / 435 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.2268, allocations: 0 / 435 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.2268, allocations: 4 kB / 435 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.2268, allocations: 4 kB / 435 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.227, allocations: 51.97 kB / 435.1 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006326/0.2276, allocations: 351.5 kB / 435.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001394/0.2277, allocations: 74.48 kB / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.995e-05/0.2278, allocations: 24.86 kB / 435.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.2278, allocations: 8 kB / 435.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.2278, allocations: 42.48 kB / 435.6 MB, free: 2.777 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.2278, allocations: 0 / 435.6 MB, free: 2.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001999/0.228, allocations: 85.62 kB / 435.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.2281, allocations: 51.41 kB / 435.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.163e-05/0.2281, allocations: 110 kB / 435.8 MB, free: 2.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.2282, allocations: 25.7 kB / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.456e-05/0.2282, allocations: 107.9 kB / 435.9 MB, free: 2.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.637e-05/0.2282, allocations: 31.89 kB / 436 MB, free: 2.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.2283, allocations: 29.7 kB / 436 MB, free: 2.301 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.2284, allocations: 322.8 kB / 436.3 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.31e-05/0.2285, allocations: 19.98 kB / 436.3 MB, free: 1.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.296e-05/0.2285, allocations: 42.56 kB / 436.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.917e-05/0.2286, allocations: 62.58 kB / 436.4 MB, free: 1.836 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2286, allocations: 4.188 kB / 436.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001528/0.2288, allocations: 109.5 kB / 436.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2288, allocations: 11.98 kB / 436.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.2288, allocations: 7.938 kB / 436.6 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.2288, allocations: 4.062 kB / 436.6 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.2289, allocations: 24 kB / 436.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.2289, allocations: 0 / 436.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.923e-05/0.229, allocations: 7.953 kB / 436.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.229, allocations: 7.984 kB / 436.6 MB, free: 1.656 MB / 334.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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.29e-05/0.2291, allocations: 121.8 kB / 436.7 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.647e-05/0.2291, allocations: 4 kB / 436.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.048e-05/0.2291, allocations: 12.31 kB / 436.7 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.2291, allocations: 0 / 436.7 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2291, allocations: 0 / 436.7 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2291, allocations: 4 kB / 436.7 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001965/0.2293, allocations: 156.7 kB / 436.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2293, allocations: 0 / 436.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.2294, allocations: 19.98 kB / 436.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2294, allocations: 0 / 436.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.2294, allocations: 7.922 kB / 436.9 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.2294, allocations: 0 / 436.9 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2294, allocations: 0 / 436.9 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002107/0.2296, allocations: 203.4 kB / 437.1 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.009e-05/0.2297, allocations: 3.953 kB / 437.1 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.2297, allocations: 7.969 kB / 437.1 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.056e-05/0.2297, allocations: 12 kB / 437.1 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.411e-05/0.2298, allocations: 3.984 kB / 437.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.2298, allocations: 7.938 kB / 437.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.769e-05/0.2298, allocations: 79.28 kB / 437.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2298, allocations: 0 / 437.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002309/0.23, allocations: 24 kB / 437.3 MB, free: 0.9297 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0004488/0.2305, allocations: 0.7245 MB / 438 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.2306, allocations: 52.05 kB / 438 MB, free: 132 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2306, allocations: 192 / 438 MB, free: 132 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.699e-05/0.2307, allocations: 31.92 kB / 438.1 MB, free: 100 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.2309, allocations: 4 kB / 438.1 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.2325, allocations: 1.549 MB / 439.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.406e-05/0.2325, allocations: 87.12 kB / 439.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.079e-05/0.2326, allocations: 7.938 kB / 439.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.495e-05/0.2326, allocations: 19.44 kB / 439.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2326, allocations: 0 / 439.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.2561, allocations: 2.003 MB / 441.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.52, allocations: 24.41 kB / 441.8 MB, free: 12.45 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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: 12.767728814971633]