Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.001462/0.001462, allocations: 103.9 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.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.001554/0.001554, allocations: 188.9 kB / 24.49 MB, free: 3.957 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.316/1.316, allocations: 225.7 MB / 253.3 MB, free: 12.84 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.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 47.92 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2169, allocations: 52.18 MB / 423.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002971/0.2199, allocations: 1.596 MB / 424.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008639/0.2208, allocations: 483 kB / 425.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.907e-05/0.2208, allocations: 0 / 425.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.585e-05/0.2209, allocations: 15.86 kB / 425.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.263e-05/0.2209, allocations: 31.7 kB / 425.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.2211, allocations: 23.97 kB / 425.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.2213, allocations: 103.5 kB / 425.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.2214, allocations: 34.08 kB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.425e-05/0.2215, allocations: 35.94 kB / 425.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.796e-05/0.2216, allocations: 43.83 kB / 425.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.2216, allocations: 11.94 kB / 425.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.563e-05/0.2217, allocations: 16 kB / 425.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.565e-05/0.2217, allocations: 15.98 kB / 425.7 MB, free: 12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.763e-05/0.2217, allocations: 39.86 kB / 425.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.2219, allocations: 95.61 kB / 425.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2219, allocations: 0 / 425.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2219, allocations: 0 / 425.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.2219, allocations: 0 / 425.9 MB, free: 11.87 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.0004819/0.2224, allocations: 322 kB / 426.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.2224, allocations: 12.03 kB / 426.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.73e-05/0.2225, allocations: 4.172 kB / 426.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.65e-05/0.2225, allocations: 38.75 kB / 426.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.2226, allocations: 12.89 kB / 426.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.2227, allocations: 114.5 kB / 426.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.2227, allocations: 8.375 kB / 426.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.2228, allocations: 12.38 kB / 426.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001758/0.2229, allocations: 81.56 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.2229, allocations: 11.94 kB / 426.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.223, allocations: 4 kB / 426.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.371e-06/0.223, allocations: 0 / 426.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001222/0.2231, allocations: 55.91 kB / 426.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.2237, allocations: 347.6 kB / 426.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.2239, allocations: 74.48 kB / 426.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.927e-05/0.2239, allocations: 24.86 kB / 427 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.2239, allocations: 7.984 kB / 427 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.224, allocations: 38.56 kB / 427 MB, free: 10.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.224, allocations: 0 / 427 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002035/0.2242, allocations: 97.83 kB / 427.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.2242, allocations: 51.41 kB / 427.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.478e-05/0.2243, allocations: 109.8 kB / 427.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.2243, allocations: 25.7 kB / 427.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.2244, allocations: 104 kB / 427.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.2244, allocations: 31.7 kB / 427.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.427e-05/0.2245, allocations: 29.7 kB / 427.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.2246, allocations: 314.8 kB / 427.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.55e-05/0.2246, allocations: 23.98 kB / 427.8 MB, free: 9.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.859e-05/0.2247, allocations: 46.56 kB / 427.8 MB, free: 9.715 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.2248, allocations: 70.45 kB / 427.9 MB, free: 9.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2248, allocations: 0 / 427.9 MB, free: 9.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001557/0.225, allocations: 105.6 kB / 428 MB, free: 9.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.225, allocations: 4 kB / 428 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.225, allocations: 7.938 kB / 428 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.225, allocations: 0 / 428 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.2251, allocations: 20 kB / 428 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.2251, allocations: 8.047 kB / 428 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.383e-05/0.2252, allocations: 7.953 kB / 428 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.2252, allocations: 4 kB / 428 MB, free: 9.477 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 9.336e-05/0.2253, allocations: 121.8 kB / 428.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.2253, allocations: 3.953 kB / 428.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.51e-05/0.2253, allocations: 16.31 kB / 428.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2253, allocations: 0 / 428.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2253, allocations: 0 / 428.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.2253, allocations: 0 / 428.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001891/0.2255, allocations: 156.7 kB / 428.3 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2255, allocations: 8 kB / 428.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.2256, allocations: 23.92 kB / 428.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.2256, allocations: 0 / 428.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.2256, allocations: 3.938 kB / 428.4 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2256, allocations: 0 / 428.4 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2256, allocations: 3.938 kB / 428.4 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.2259, allocations: 195.4 kB / 428.6 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.138e-05/0.2259, allocations: 8.016 kB / 428.6 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.2259, allocations: 3.938 kB / 428.6 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.776e-05/0.226, allocations: 4.25 kB / 428.6 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.416e-05/0.226, allocations: 7.984 kB / 428.6 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.226, allocations: 8.062 kB / 428.6 MB, free: 8.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.836e-05/0.226, allocations: 87.28 kB / 428.7 MB, free: 8.766 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.226, allocations: 0 / 428.7 MB, free: 8.766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002276/0.2262, allocations: 19.95 kB / 428.7 MB, free: 8.746 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.0004841/0.2267, allocations: 0.728 MB / 429.4 MB, free: 7.992 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.2269, allocations: 59.91 kB / 429.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2269, allocations: 0 / 429.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.25e-05/0.2269, allocations: 20 kB / 429.5 MB, free: 7.914 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.2272, allocations: 14.69 kB / 429.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.2287, allocations: 1.54 MB / 431.1 MB, free: 6.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.68e-05/0.2288, allocations: 75.33 kB / 431.1 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.386e-05/0.2288, allocations: 11.98 kB / 431.1 MB, free: 6.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.387e-05/0.2289, allocations: 19.44 kB / 431.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2289, allocations: 0 / 431.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.2511, allocations: 2.016 MB / 433.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.72, allocations: 8.062 kB / 433.2 MB, free: 4.273 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.906284035998397]