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.001194/0.001194, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001603/0.001603, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.358/1.358, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.001399/0.001399, allocations: 55.92 kB / 378.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.207, allocations: 53.36 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002642/0.2097, allocations: 1.656 MB / 433.6 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008429/0.2105, allocations: 0.5533 MB / 434.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.06e-05/0.2106, allocations: 0 / 434.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.297e-05/0.2106, allocations: 15.86 kB / 434.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.92e-05/0.2107, allocations: 27.77 kB / 434.2 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.2109, allocations: 31.91 kB / 434.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.211, allocations: 95.58 kB / 434.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.2111, allocations: 27.98 kB / 434.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.277e-05/0.2112, allocations: 39.86 kB / 434.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.356e-05/0.2113, allocations: 39.83 kB / 434.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.2113, allocations: 12 kB / 434.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.519e-05/0.2113, allocations: 23.88 kB / 434.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.278e-05/0.2114, allocations: 19.92 kB / 434.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.929e-05/0.2114, allocations: 39.86 kB / 434.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.2116, allocations: 100.5 kB / 434.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2116, allocations: 0 / 434.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2116, allocations: 0 / 434.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.2116, allocations: 3.938 kB / 434.6 MB, free: 4.195 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.0004157/0.212, allocations: 306.1 kB / 434.9 MB, free: 3.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.212, allocations: 12.03 kB / 434.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.189e-05/0.212, allocations: 4.188 kB / 434.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.686e-05/0.2121, allocations: 42.73 kB / 434.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.2122, allocations: 8.891 kB / 434.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.989e-05/0.2123, allocations: 114.4 kB / 435.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.2123, allocations: 12.36 kB / 435.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.564e-05/0.2123, allocations: 8.375 kB / 435.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001538/0.2125, allocations: 81.61 kB / 435.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.2125, allocations: 0 / 435.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.2125, allocations: 8 kB / 435.2 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.2125, allocations: 7.984 kB / 435.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/0.2126, allocations: 55.97 kB / 435.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006066/0.2132, allocations: 371.5 kB / 435.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001207/0.2133, allocations: 62.56 kB / 435.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.407e-05/0.2134, allocations: 44.78 kB / 435.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.2134, allocations: 0 / 435.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.2134, allocations: 30.56 kB / 435.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.31e-07/0.2134, allocations: 0 / 435.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001869/0.2136, allocations: 89.77 kB / 435.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.2137, allocations: 51.41 kB / 435.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.624e-05/0.2137, allocations: 110 kB / 436 MB, free: 2.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.2137, allocations: 29.7 kB / 436 MB, free: 2.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.2138, allocations: 104 kB / 436.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.2138, allocations: 31.73 kB / 436.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.303e-05/0.2139, allocations: 25.72 kB / 436.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.214, allocations: 322.8 kB / 436.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.779e-05/0.214, allocations: 19.94 kB / 436.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.997e-05/0.2141, allocations: 45.56 kB / 436.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.93e-05/0.2142, allocations: 74.5 kB / 436.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2142, allocations: 0 / 436.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001533/0.2144, allocations: 105.6 kB / 436.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.2144, allocations: 4 kB / 436.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2144, allocations: 3.938 kB / 436.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.2144, allocations: 7.938 kB / 436.7 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.2145, allocations: 27.92 kB / 436.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.2145, allocations: 4.062 kB / 436.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.788e-05/0.2145, allocations: 4 kB / 436.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.2146, allocations: 4 kB / 436.8 MB, free: 1.801 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.256e-05/0.2146, allocations: 117.8 kB / 436.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.2147, allocations: 3.953 kB / 436.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.856e-05/0.2147, allocations: 16.25 kB / 436.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.2147, allocations: 7.984 kB / 436.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2147, allocations: 0 / 436.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2147, allocations: 0 / 436.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.2149, allocations: 164.6 kB / 437.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2149, allocations: 0 / 437.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.215, allocations: 23.98 kB / 437.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.215, allocations: 4 kB / 437.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.215, allocations: 3.938 kB / 437.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.215, allocations: 256 / 437.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.215, allocations: 4 kB / 437.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002/0.2152, allocations: 191.4 kB / 437.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.229e-05/0.2152, allocations: 12.05 kB / 437.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.2152, allocations: 7.938 kB / 437.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.28e-05/0.2153, allocations: 0 / 437.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.529e-05/0.2153, allocations: 7.984 kB / 437.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.2153, allocations: 0 / 437.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.892e-05/0.2154, allocations: 87.27 kB / 437.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2154, allocations: 0 / 437.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000229/0.2156, allocations: 24 kB / 437.4 MB, free: 1.066 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.0004493/0.216, allocations: 0.7241 MB / 438.2 MB, free: 324 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001226/0.2162, allocations: 51.97 kB / 438.2 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.2162, allocations: 4 kB / 438.2 MB, free: 268 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.177e-05/0.2162, allocations: 20.41 kB / 438.2 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.2165, allocations: 13.81 kB / 438.2 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.218, allocations: 1.557 MB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.2183, allocations: 0.704 MB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.154e-05/0.2183, allocations: 11.89 kB / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.336e-05/0.2183, allocations: 23.44 kB / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2183, allocations: 0 / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02161/0.24, allocations: 1.983 MB / 442.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.53, allocations: 8.125 kB / 442.5 MB, free: 11.98 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.778078665956855]