Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.00183/0.00183, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.002284/0.002284, allocations: 212.3 kB / 24.51 MB, free: 3.918 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.416/1.416, allocations: 230.6 MB / 258.3 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2266/0.2266, allocations: 46.97 MB / 361.7 MB, free: 4 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 67.91 kB / 0.4969 GB, free: 7.676 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3024, allocations: 66.03 MB / 0.5614 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01197/0.3144, allocations: 9.052 MB / 0.5702 GB, free: 11.08 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007923/0.3223, allocations: 3.691 MB / 0.5738 GB, free: 7.383 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001443/0.3238, allocations: 67.69 kB / 0.5739 GB, free: 7.316 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004323/0.3281, allocations: 2.024 MB / 0.5758 GB, free: 5.285 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004395/0.3325, allocations: 1.716 MB / 0.5775 GB, free: 3.562 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00172/0.3342, allocations: 0.7095 MB / 0.5782 GB, free: 2.852 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005759/0.34, allocations: 4.001 MB / 0.5821 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002897/0.3429, allocations: 2.159 MB / 0.5842 GB, free: 12.63 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002095/0.345, allocations: 1.328 MB / 0.5855 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002996/0.3479, allocations: 2.005 MB / 0.5875 GB, free: 9.285 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006927/0.3486, allocations: 268 kB / 0.5877 GB, free: 9.023 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002174/0.3508, allocations: 1.092 MB / 0.5888 GB, free: 7.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001995/0.3528, allocations: 1.71 MB / 0.5905 GB, free: 6.215 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002394/0.3552, allocations: 1.456 MB / 0.5919 GB, free: 4.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007887/0.3631, allocations: 6.366 MB / 0.5981 GB, free: 14.36 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3631, allocations: 0 / 0.5981 GB, free: 14.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3631, allocations: 0 / 0.5981 GB, free: 14.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001533/0.3632, allocations: 0 / 0.5981 GB, free: 14.36 MB / 446.1 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.01101/0.3743, allocations: 4.374 MB / 0.6024 GB, free: 9.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.3743, allocations: 8.031 kB / 0.6024 GB, free: 9.922 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000125/0.3744, allocations: 89.23 kB / 0.6025 GB, free: 9.832 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001224/0.3756, allocations: 0.621 MB / 0.6031 GB, free: 9.199 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08449/0.4601, allocations: 7.056 MB / 0.61 GB, free: 2.133 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006334/0.4665, allocations: 2.577 MB / 0.6125 GB, free: 15.49 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001798/0.4667, allocations: 197 kB / 0.6127 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008588/0.4675, allocations: 271.8 kB / 0.6129 GB, free: 15.04 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01486/0.4824, allocations: 8.596 MB / 0.6213 GB, free: 5.785 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001161/0.4825, allocations: 47.62 kB / 0.6214 GB, free: 5.738 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004164/0.4829, allocations: 123.9 kB / 0.6215 GB, free: 5.617 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003011/0.4859, allocations: 1.735 MB / 0.6232 GB, free: 3.883 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01404/0.5, allocations: 7.174 MB / 0.6302 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04194/0.5419, allocations: 32.12 MB / 0.6616 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008837/0.5507, allocations: 2.836 MB / 0.6643 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002439/0.5532, allocations: 1.514 MB / 0.6658 GB, free: 7.207 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01182/0.565, allocations: 5.95 MB / 0.6716 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.33e-05/0.5651, allocations: 47.56 kB / 0.6717 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 5.451e-06/0.5651, allocations: 0 / 0.6717 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06923/0.6343, allocations: 18.97 MB / 0.6902 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.6344, allocations: 209.2 kB / 0.6904 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005649/0.6401, allocations: 3.745 MB / 0.6941 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003273/0.6404, allocations: 53.7 kB / 0.6941 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00265/0.6431, allocations: 2.937 MB / 0.697 GB, free: 7.125 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001162/0.6442, allocations: 0.7442 MB / 0.6977 GB, free: 6.375 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001891/0.6461, allocations: 1.179 MB / 0.6989 GB, free: 5.184 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.6463, allocations: 305.1 kB / 0.6991 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00369/0.6499, allocations: 2.096 MB / 0.7012 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007643/0.6576, allocations: 5.718 MB / 0.7068 GB, free: 11.28 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/0.6691, allocations: 8.414 MB / 0.715 GB, free: 1.109 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001141/0.6692, allocations: 36 kB / 0.715 GB, free: 1.074 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01956/0.6888, allocations: 8.691 MB / 0.7235 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-05/0.6889, allocations: 63.94 kB / 0.7236 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001582/0.689, allocations: 127.9 kB / 0.7237 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005476/0.6945, allocations: 1.38 MB / 0.725 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004374/0.6989, allocations: 1.294 MB / 0.7263 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2699/0.9688, allocations: 9.003 MB / 0.7351 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004171/0.973, allocations: 302.7 kB / 0.7354 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008557/0.9739, allocations: 357.5 kB / 0.7357 GB, free: 150.6 MB / 0.5606 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.003067/0.9769, allocations: 1.899 MB / 0.7376 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006378/0.9776, allocations: 350.2 kB / 0.7379 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007667/0.9852, allocations: 3.75 MB / 0.7416 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.315e-05/0.9853, allocations: 19.31 kB / 0.7416 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.9853, allocations: 9.688 kB / 0.7416 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.221e-05/0.9853, allocations: 10.02 kB / 0.7416 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01598/1.001, allocations: 7.795 MB / 0.7492 GB, free: 146 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.472e-05/1.001, allocations: 0 / 0.7492 GB, free: 146 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/1.003, allocations: 251.6 kB / 0.7495 GB, free: 145.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004388/1.007, allocations: 1.175 MB / 0.7506 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003112/1.007, allocations: 39.11 kB / 0.7507 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/1.017, allocations: 8.274 MB / 0.7587 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/1.017, allocations: 4 kB / 0.7587 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009862/1.027, allocations: 6.293 MB / 0.7649 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008356/1.028, allocations: 318 kB / 0.7652 GB, free: 131.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006602/1.029, allocations: 31.28 kB / 0.7652 GB, free: 131.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/1.03, allocations: 83.91 kB / 0.7653 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003771/1.031, allocations: 114.9 kB / 0.7654 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/1.031, allocations: 55.98 kB / 0.7655 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003132/1.034, allocations: 2.324 MB / 0.7677 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.034, allocations: 0 / 0.7677 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004899/1.039, allocations: 0.9494 MB / 0.7687 GB, free: 127.9 MB / 0.5606 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.01026/1.049, allocations: 6.98 MB / 0.7755 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006738/1.056, allocations: 5.019 MB / 0.7804 GB, free: 116 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.056, allocations: 0 / 0.7804 GB, free: 116 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002141/1.058, allocations: 1.632 MB / 0.782 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002767/1.061, allocations: 410.5 kB / 0.7824 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0599/1.121, allocations: 44.33 MB / 0.8256 GB, free: 64.11 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003203/1.124, allocations: 2.414 MB / 0.828 GB, free: 61.66 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003727/1.128, allocations: 1.811 MB / 0.8298 GB, free: 59.84 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002219/1.13, allocations: 1.651 MB / 0.8314 GB, free: 58.19 MB / 0.5606 GB Notification: Performance of SimCode: time 1.483e-06/1.13, allocations: 0 / 0.8314 GB, free: 58.19 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1076/1.237, allocations: 69.95 MB / 0.8997 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.13/30.37, allocations: 18.59 kB / 0.8997 GB, free: 5.016 MB / 0.5762 GB " [Timeout remaining time 629] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 34.5082586070057]