Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.001743/0.001743, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002133/0.002133, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.234/0.234, allocations: 46.93 MB / 360.9 MB, free: 4.273 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.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 71.89 kB / 0.4962 GB, free: 7.895 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3262, allocations: 66.03 MB / 0.5607 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01146/0.3376, allocations: 9.576 MB / 0.57 GB, free: 10.85 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007553/0.3452, allocations: 3.878 MB / 0.5738 GB, free: 6.957 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.3464, allocations: 63.75 kB / 0.5739 GB, free: 6.895 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004893/0.3513, allocations: 2.796 MB / 0.5766 GB, free: 4.09 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003746/0.3551, allocations: 1.658 MB / 0.5782 GB, free: 2.426 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001594/0.3567, allocations: 0.7213 MB / 0.5789 GB, free: 1.703 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005907/0.3626, allocations: 3.895 MB / 0.5827 GB, free: 13.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003528/0.3661, allocations: 2.756 MB / 0.5854 GB, free: 10.98 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002339/0.3684, allocations: 1.425 MB / 0.5868 GB, free: 9.547 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002946/0.3714, allocations: 2.056 MB / 0.5888 GB, free: 7.484 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005886/0.372, allocations: 316 kB / 0.5891 GB, free: 7.176 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002011/0.374, allocations: 1.221 MB / 0.5903 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001631/0.3756, allocations: 1.788 MB / 0.592 GB, free: 4.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002045/0.3777, allocations: 2.086 MB / 0.5941 GB, free: 2.062 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007786/0.3854, allocations: 6.861 MB / 0.6008 GB, free: 11.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3855, allocations: 0 / 0.6008 GB, free: 11.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3855, allocations: 4 kB / 0.6008 GB, free: 11.17 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001774/0.3856, allocations: 0 / 0.6008 GB, free: 11.17 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.009682/0.3953, allocations: 4.508 MB / 0.6052 GB, free: 6.609 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.3954, allocations: 12.03 kB / 0.6052 GB, free: 6.598 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000985/0.3963, allocations: 0.6574 MB / 0.6058 GB, free: 5.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08023/0.4766, allocations: 7.059 MB / 0.6127 GB, free: 14.86 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006517/0.4831, allocations: 2.62 MB / 0.6153 GB, free: 12.18 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.4833, allocations: 214 kB / 0.6155 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005737/0.4838, allocations: 295.8 kB / 0.6158 GB, free: 11.68 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/0.4969, allocations: 8.661 MB / 0.6242 GB, free: 2.375 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001173/0.497, allocations: 51.62 kB / 0.6243 GB, free: 2.324 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003459/0.4973, allocations: 135.9 kB / 0.6244 GB, free: 2.191 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002666/0.5, allocations: 1.657 MB / 0.626 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.5137, allocations: 7.082 MB / 0.633 GB, free: 9.445 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0415/0.5552, allocations: 33.14 MB / 0.6653 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00453/0.5598, allocations: 1.832 MB / 0.6671 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.5614, allocations: 1.125 MB / 0.6682 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002657/0.5616, allocations: 88.42 kB / 0.6683 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.5617, allocations: 47.06 kB / 0.6683 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=122): time 5.61e-06/0.5617, allocations: 7.984 kB / 0.6683 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of matching and sorting (n=140): time 0.02498/0.5867, allocations: 10.53 MB / 0.6786 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.5868, allocations: 200.5 kB / 0.6788 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005104/0.5919, allocations: 3.592 MB / 0.6823 GB, free: 5.703 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002413/0.5922, allocations: 41.7 kB / 0.6824 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002319/0.5945, allocations: 2.956 MB / 0.6853 GB, free: 2.672 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006501/0.5951, allocations: 0.5739 MB / 0.6858 GB, free: 2.094 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001309/0.5964, allocations: 1.079 MB / 0.6869 GB, free: 1.004 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.5966, allocations: 305.1 kB / 0.6872 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002606/0.5992, allocations: 1.689 MB / 0.6888 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005303/0.6045, allocations: 5.072 MB / 0.6938 GB, free: 8.234 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009164/0.6136, allocations: 7.351 MB / 0.7009 GB, free: 15.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.982e-05/0.6137, allocations: 39.94 kB / 0.701 GB, free: 15.17 MB / 0.545 GB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01188/0.6256, allocations: 6.736 MB / 0.7076 GB, free: 8.426 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.479e-05/0.6257, allocations: 56 kB / 0.7076 GB, free: 8.371 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.6258, allocations: 116 kB / 0.7077 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009609/0.6267, allocations: 432.7 kB / 0.7081 GB, free: 7.832 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003634/0.6304, allocations: 1.205 MB / 0.7093 GB, free: 6.625 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004411/0.6348, allocations: 3.49 MB / 0.7127 GB, free: 3.023 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003359/0.6381, allocations: 291.7 kB / 0.713 GB, free: 2.738 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005719/0.6387, allocations: 335.9 kB / 0.7133 GB, free: 2.41 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (644): * Single equations (assignments): 640 * 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,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003058/0.6418, allocations: 1.955 MB / 0.7152 GB, free: 452 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005286/0.6423, allocations: 313.9 kB / 0.7155 GB, free: 136 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003553/0.6459, allocations: 1.878 MB / 0.7174 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.217e-05/0.6459, allocations: 16 kB / 0.7174 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.6459, allocations: 0 / 0.7174 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/0.6459, allocations: 7.984 kB / 0.7174 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.6567, allocations: 5.743 MB / 0.723 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.6567, allocations: 3.938 kB / 0.723 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.6578, allocations: 223.7 kB / 0.7232 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007411/0.6585, allocations: 252.6 kB / 0.7234 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.6586, allocations: 27.97 kB / 0.7235 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00376/0.6624, allocations: 3.063 MB / 0.7265 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6624, allocations: 4.062 kB / 0.7265 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006053/0.6684, allocations: 3.962 MB / 0.7303 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007318/0.6691, allocations: 289.8 kB / 0.7306 GB, free: 472 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003011/0.6694, allocations: 23.98 kB / 0.7306 GB, free: 448 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.6705, allocations: 71.92 kB / 0.7307 GB, free: 376 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002588/0.6707, allocations: 100.5 kB / 0.7308 GB, free: 276 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.877e-05/0.6708, allocations: 39.98 kB / 0.7308 GB, free: 236 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.2622/0.9331, allocations: 2.245 MB / 0.733 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.4e-07/0.9331, allocations: 0 / 0.733 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003808/0.9369, allocations: 0.8215 MB / 0.7338 GB, free: 152.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.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 (107): * Single equations (assignments): 103 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005035/0.9419, allocations: 4.572 MB / 0.7383 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006071/0.948, allocations: 3.973 MB / 0.7422 GB, free: 149 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.948, allocations: 0 / 0.7422 GB, free: 149 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.9493, allocations: 1.108 MB / 0.7433 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/0.9512, allocations: 393.7 kB / 0.7436 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0427/0.9939, allocations: 37.98 MB / 0.7807 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002279/0.9962, allocations: 3.037 MB / 0.7837 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002975/0.9991, allocations: 1.712 MB / 0.7854 GB, free: 105.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/1.001, allocations: 1.659 MB / 0.787 GB, free: 103.8 MB / 0.5606 GB Notification: Performance of SimCode: time 9.82e-07/1.001, allocations: 3.719 kB / 0.787 GB, free: 103.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1195/1.12, allocations: 61.14 MB / 0.8467 GB, free: 43.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.85/25.97, allocations: 10.69 kB / 0.8467 GB, free: 43.09 MB / 0.5606 GB " [Timeout remaining time 634] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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: 29.50772073213011]