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.001247/0.001247, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001311/0.001311, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.412/1.412, allocations: 230.6 MB / 254.1 MB, free: 15.07 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 55.91 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/0.0949, allocations: 53.32 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002885/0.09778, allocations: 1.642 MB / 427.9 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008753/0.09866, allocations: 0.5494 MB / 428.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.644e-05/0.0987, allocations: 0 / 428.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.919e-05/0.09875, allocations: 15.81 kB / 428.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.857e-05/0.09882, allocations: 31.77 kB / 428.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001942/0.09902, allocations: 35.89 kB / 428.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001422/0.09916, allocations: 103.5 kB / 428.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.09927, allocations: 23.98 kB / 428.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.687e-05/0.09932, allocations: 35.92 kB / 428.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.491e-05/0.0994, allocations: 39.84 kB / 428.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.09942, allocations: 11.94 kB / 428.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.596e-05/0.0995, allocations: 12 kB / 428.8 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.187e-05/0.09952, allocations: 11.98 kB / 428.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.858e-05/0.09959, allocations: 51.8 kB / 428.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.09975, allocations: 99.61 kB / 428.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09976, allocations: 0 / 428.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.09976, allocations: 0 / 428.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.09976, allocations: 0 / 428.9 MB, free: 2.141 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005186/0.1003, allocations: 389.8 kB / 429.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.1003, allocations: 11.97 kB / 429.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.977e-05/0.1004, allocations: 38.75 kB / 429.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.1005, allocations: 12.89 kB / 429.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.1006, allocations: 176.3 kB / 429.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.1006, allocations: 12.38 kB / 429.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.1007, allocations: 4.375 kB / 429.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.1008, allocations: 89.73 kB / 429.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.1009, allocations: 0 / 429.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.1009, allocations: 4 kB / 429.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.1009, allocations: 4 kB / 429.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.101, allocations: 51.97 kB / 429.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006758/0.1017, allocations: 408.4 kB / 430.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.1018, allocations: 62.56 kB / 430.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.663e-05/0.1019, allocations: 32.84 kB / 430.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.1019, allocations: 0 / 430.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.1019, allocations: 38.56 kB / 430.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.725e-06/0.1019, allocations: 4 kB / 430.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002063/0.1021, allocations: 89.7 kB / 430.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.1021, allocations: 55.41 kB / 430.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.43e-05/0.1022, allocations: 102 kB / 430.5 MB, free: 400 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.1023, allocations: 29.7 kB / 430.5 MB, free: 364 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.202e-05/0.1023, allocations: 103.9 kB / 430.6 MB, free: 256 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/0.1023, allocations: 31.73 kB / 430.7 MB, free: 224 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.674e-05/0.1024, allocations: 25.72 kB / 430.7 MB, free: 192 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1025, allocations: 326.8 kB / 431 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.146e-05/0.1026, allocations: 20 kB / 431 MB, free: 15.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.922e-05/0.1026, allocations: 50.25 kB / 431.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001088/0.1027, allocations: 66.5 kB / 431.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1027, allocations: 0 / 431.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001627/0.1029, allocations: 113.5 kB / 431.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.1029, allocations: 4 kB / 431.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1029, allocations: 4 kB / 431.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1029, allocations: 3.938 kB / 431.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.1031, allocations: 27.92 kB / 431.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.1031, allocations: 0 / 431.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.887e-05/0.1031, allocations: 4 kB / 431.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1031, allocations: 4 kB / 431.3 MB, free: 15.55 MB / 366.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.395e-05/0.1032, allocations: 117.8 kB / 431.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.1032, allocations: 8.016 kB / 431.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.371e-05/0.1033, allocations: 16.31 kB / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.1033, allocations: 0 / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.1033, allocations: 0 / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1033, allocations: 3.984 kB / 431.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.1035, allocations: 185.8 kB / 431.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1035, allocations: 3.984 kB / 431.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.1036, allocations: 27.92 kB / 431.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.1036, allocations: 4 kB / 431.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1036, allocations: 7.938 kB / 431.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1036, allocations: 0 / 431.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1036, allocations: 4 kB / 431.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002171/0.1038, allocations: 195.8 kB / 431.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-05/0.1039, allocations: 85.09 kB / 431.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.1039, allocations: 7.938 kB / 431.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.496e-05/0.104, allocations: 0 / 431.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.233e-05/0.104, allocations: 7.984 kB / 432 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.104, allocations: 0 / 432 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.684e-05/0.104, allocations: 87.34 kB / 432 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.104, allocations: 0 / 432 MB, free: 14.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002337/0.1043, allocations: 23.94 kB / 432.1 MB, free: 14.68 MB / 366.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.0004977/0.1048, allocations: 0.7241 MB / 432.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.1049, allocations: 63.97 kB / 432.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1049, allocations: 4.062 kB / 432.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.725e-05/0.105, allocations: 23.88 kB / 432.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.1052, allocations: 10.19 kB / 432.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.1068, allocations: 1.541 MB / 434.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.1072, allocations: 0.6961 MB / 435.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.113e-05/0.1072, allocations: 7.984 kB / 435.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.364e-05/0.1072, allocations: 19.44 kB / 435.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1072, allocations: 0 / 435.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02982/0.1371, allocations: 1.809 MB / 437 MB, free: 9.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.661/7.798, allocations: 14.58 kB / 437 MB, free: 9.719 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.167964624939486]