Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009157/0.0009157, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008924/0.0008924, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.888/0.888, allocations: 177 MB / 204.1 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2638/0.2638, allocations: 34.23 MB / 294.8 MB, free: 0.6953 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 442.2 MB, free: 1.555 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.356e-05/2.544e-05, allocations: 8.672 kB / 442.2 MB, free: 1.547 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.1755/0.1756, allocations: 9.108 MB / 451.3 MB, free: 39.3 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005566/0.1811, allocations: 3.694 MB / 455 MB, free: 37.02 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.1823, allocations: 71.31 kB / 455 MB, free: 36.99 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002002/0.1843, allocations: 2.132 MB / 457.2 MB, free: 36.09 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002811/0.1871, allocations: 1.767 MB / 458.9 MB, free: 35.27 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009376/0.188, allocations: 0.7525 MB / 459.7 MB, free: 34.96 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003061/0.1911, allocations: 4.406 MB / 464.1 MB, free: 33.27 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001665/0.1928, allocations: 2.414 MB / 466.5 MB, free: 32.2 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001856/0.1946, allocations: 1.974 MB / 468.5 MB, free: 31.36 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001643/0.1963, allocations: 2.004 MB / 470.5 MB, free: 30.83 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003378/0.1966, allocations: 269.5 kB / 470.7 MB, free: 30.83 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001253/0.1978, allocations: 1.131 MB / 471.9 MB, free: 30.62 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008992/0.1987, allocations: 1.771 MB / 473.6 MB, free: 29.88 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007785/0.1995, allocations: 1.142 MB / 474.8 MB, free: 29.32 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004726/0.2042, allocations: 6.42 MB / 481.2 MB, free: 27.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2043, allocations: 0 / 481.2 MB, free: 27.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2043, allocations: 3.938 kB / 481.2 MB, free: 27.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001717/0.2044, allocations: 1.469 kB / 481.2 MB, free: 27.12 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.009324/0.2138, allocations: 4.395 MB / 485.6 MB, free: 24.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.254e-05/0.2138, allocations: 9.188 kB / 485.6 MB, free: 24.66 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00091/0.2147, allocations: 0.6232 MB / 486.2 MB, free: 24.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03937/0.2541, allocations: 7.321 MB / 493.6 MB, free: 23.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00568/0.2598, allocations: 2.399 MB / 496 MB, free: 22.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.2599, allocations: 195 kB / 496.2 MB, free: 22.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007828/0.2607, allocations: 271.8 kB / 496.4 MB, free: 21.97 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01236/0.2731, allocations: 8.603 MB / 0.4932 GB, free: 16.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000113/0.2732, allocations: 41.52 kB / 0.4932 GB, free: 16.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003318/0.2735, allocations: 134.4 kB / 0.4934 GB, free: 16.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001617/0.2751, allocations: 1.732 MB / 0.495 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008648/0.2838, allocations: 7.139 MB / 0.502 GB, free: 8.113 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03054/0.3143, allocations: 32.33 MB / 0.5336 GB, free: 6.844 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005021/0.3193, allocations: 2.921 MB / 0.5364 GB, free: 3.879 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.3208, allocations: 1.506 MB / 0.5379 GB, free: 2.363 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007491/0.3283, allocations: 6.132 MB / 0.5439 GB, free: 12.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.3283, allocations: 47.56 kB / 0.5439 GB, free: 12.15 MB / 458.7 MB Notification: Performance of pre-optimization done (n=151): time 5.5e-06/0.3283, allocations: 0 / 0.5439 GB, free: 12.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=188): time 0.03488/0.3632, allocations: 19.19 MB / 0.5627 GB, free: 8.898 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.165e-05/0.3633, allocations: 201.2 kB / 0.5629 GB, free: 8.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004273/0.3676, allocations: 4.137 MB / 0.5669 GB, free: 4.531 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003296/0.3679, allocations: 49.7 kB / 0.567 GB, free: 4.477 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001331/0.3692, allocations: 2.909 MB / 0.5698 GB, free: 1.539 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007153/0.3699, allocations: 0.7365 MB / 0.5705 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001112/0.3711, allocations: 1.152 MB / 0.5716 GB, free: 15.63 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.453e-05/0.3711, allocations: 309.1 kB / 0.5719 GB, free: 15.33 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002105/0.3732, allocations: 2.041 MB / 0.5739 GB, free: 13.28 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003717/0.377, allocations: 5.639 MB / 0.5794 GB, free: 5.855 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006673/0.3836, allocations: 8.296 MB / 0.5875 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.756e-05/0.3837, allocations: 39.98 kB / 0.5876 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01204/0.3958, allocations: 8.628 MB / 0.596 GB, free: 3.129 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.299e-05/0.3958, allocations: 60.25 kB / 0.5961 GB, free: 3.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.635e-05/0.3959, allocations: 128 kB / 0.5962 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002675/0.3986, allocations: 1.457 MB / 0.5976 GB, free: 1.484 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002505/0.4011, allocations: 1.302 MB / 0.5989 GB, free: 184 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008869/0.41, allocations: 8.836 MB / 0.6075 GB, free: 7.227 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003241/0.4132, allocations: 339.6 kB / 0.6078 GB, free: 6.895 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005883/0.4138, allocations: 360 kB / 0.6082 GB, free: 6.543 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (695): * Single equations (assignments): 691 * Array equations: 3 * 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,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002725/0.4165, allocations: 1.89 MB / 0.61 GB, free: 4.641 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006579/0.4172, allocations: 349.7 kB / 0.6104 GB, free: 4.297 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005481/0.4227, allocations: 3.696 MB / 0.614 GB, free: 0.5898 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-05/0.4227, allocations: 23.94 kB / 0.614 GB, free: 0.5664 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.4227, allocations: 8 kB / 0.614 GB, free: 0.5586 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.4227, allocations: 11.97 kB / 0.614 GB, free: 0.5469 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/0.4343, allocations: 7.753 MB / 0.6216 GB, free: 8.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.4343, allocations: 0 / 0.6216 GB, free: 8.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007238/0.435, allocations: 259.6 kB / 0.6218 GB, free: 8.477 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002548/0.4376, allocations: 1.26 MB / 0.6231 GB, free: 7.211 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001585/0.4377, allocations: 35.94 kB / 0.6231 GB, free: 7.176 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2122/0.65, allocations: 8.111 MB / 0.631 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.65, allocations: 4.344 kB / 0.631 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006679/0.6567, allocations: 6.144 MB / 0.637 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009243/0.6576, allocations: 348.6 kB / 0.6374 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002901/0.6579, allocations: 25.34 kB / 0.6374 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000895/0.6588, allocations: 123.2 kB / 0.6375 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/0.659, allocations: 126.5 kB / 0.6376 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.208e-05/0.6591, allocations: 48.33 kB / 0.6377 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002519/0.6616, allocations: 2.467 MB / 0.6401 GB, free: 148.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6616, allocations: 0 / 0.6401 GB, free: 148.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003473/0.6651, allocations: 1.034 MB / 0.6411 GB, free: 148.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00665/0.6717, allocations: 6.801 MB / 0.6477 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005249/0.677, allocations: 4.869 MB / 0.6525 GB, free: 143.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.677, allocations: 0 / 0.6525 GB, free: 143.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.6785, allocations: 1.558 MB / 0.654 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002041/0.6805, allocations: 410.9 kB / 0.6544 GB, free: 143.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05366/0.7341, allocations: 44.34 MB / 0.6977 GB, free: 115 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001975/0.7361, allocations: 2.425 MB / 0.7001 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002592/0.7387, allocations: 1.816 MB / 0.7018 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/0.74, allocations: 1.651 MB / 0.7034 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.273e-06/0.74, allocations: 4 kB / 0.7034 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07488/0.8148, allocations: 69.46 MB / 0.7713 GB, free: 43.03 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.541/10.36, allocations: 10.66 kB / 0.7713 GB, free: 43.02 MB / 0.5261 GB " [Timeout remaining time 650] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.644922318868339]