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.001505/0.001505, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001797/0.001797, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.51/1.51, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.2318/0.2318, allocations: 46.96 MB / 360.9 MB, free: 4.062 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.002093/0.002093, allocations: 71.89 kB / 0.4961 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3622, allocations: 66.04 MB / 0.5606 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.0118/0.374, allocations: 8.416 MB / 0.5688 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009244/0.3832, allocations: 3.641 MB / 0.5724 GB, free: 8.004 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001411/0.3846, allocations: 63.69 kB / 0.5724 GB, free: 7.941 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005129/0.3898, allocations: 2.683 MB / 0.5751 GB, free: 5.25 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004299/0.3941, allocations: 1.666 MB / 0.5767 GB, free: 3.578 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.3958, allocations: 0.7135 MB / 0.5774 GB, free: 2.863 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00575/0.4015, allocations: 3.891 MB / 0.5812 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003652/0.4052, allocations: 2.748 MB / 0.5839 GB, free: 12.15 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002394/0.4076, allocations: 1.425 MB / 0.5853 GB, free: 10.72 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003178/0.4108, allocations: 1.943 MB / 0.5872 GB, free: 8.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008054/0.4116, allocations: 316 kB / 0.5875 GB, free: 8.461 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002385/0.414, allocations: 1.088 MB / 0.5885 GB, free: 7.371 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001845/0.4158, allocations: 1.792 MB / 0.5903 GB, free: 5.574 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002064/0.4179, allocations: 1.55 MB / 0.5918 GB, free: 4.016 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008383/0.4263, allocations: 6.884 MB / 0.5985 GB, free: 13.11 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4263, allocations: 4 kB / 0.5985 GB, free: 13.1 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4263, allocations: 0 / 0.5985 GB, free: 13.1 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001979/0.4265, allocations: 3.938 kB / 0.5985 GB, free: 13.1 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.01166/0.4381, allocations: 4.504 MB / 0.6029 GB, free: 8.539 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.4382, allocations: 12.03 kB / 0.6029 GB, free: 8.527 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001259/0.4394, allocations: 0.6574 MB / 0.6036 GB, free: 7.859 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08589/0.5253, allocations: 7.067 MB / 0.6105 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008687/0.534, allocations: 2.616 MB / 0.613 GB, free: 14.1 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002254/0.5342, allocations: 218 kB / 0.6132 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/0.5353, allocations: 291.8 kB / 0.6135 GB, free: 13.6 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01442/0.5497, allocations: 8.719 MB / 0.622 GB, free: 4.23 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/0.5498, allocations: 43.64 kB / 0.6221 GB, free: 4.188 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003631/0.5502, allocations: 135.9 kB / 0.6222 GB, free: 4.055 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002865/0.5531, allocations: 1.653 MB / 0.6238 GB, free: 2.398 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01451/0.5676, allocations: 7.07 MB / 0.6307 GB, free: 11.32 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04591/0.6135, allocations: 31.86 MB / 0.6618 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004751/0.6182, allocations: 1.825 MB / 0.6636 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.62, allocations: 1.125 MB / 0.6647 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002833/0.6203, allocations: 88.42 kB / 0.6648 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.732e-05/0.6204, allocations: 47.06 kB / 0.6648 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=122): time 3.707e-06/0.6204, allocations: 0 / 0.6648 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of matching and sorting (n=140): time 0.02625/0.6466, allocations: 10.58 MB / 0.6752 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/0.6468, allocations: 196.5 kB / 0.6754 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005474/0.6522, allocations: 3.797 MB / 0.6791 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002895/0.6525, allocations: 45.7 kB / 0.6791 GB, free: 8.582 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00244/0.655, allocations: 2.956 MB / 0.682 GB, free: 5.598 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008058/0.6558, allocations: 0.5738 MB / 0.6826 GB, free: 5.02 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001455/0.6572, allocations: 1.072 MB / 0.6836 GB, free: 3.938 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.6574, allocations: 305.1 kB / 0.6839 GB, free: 3.637 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002804/0.6602, allocations: 1.7 MB / 0.6856 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005936/0.6661, allocations: 5.114 MB / 0.6905 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/0.6761, allocations: 7.355 MB / 0.6977 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001424/0.6763, allocations: 32 kB / 0.6978 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01357/0.6898, allocations: 6.74 MB / 0.7043 GB, free: 11.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.226e-05/0.6899, allocations: 56 kB / 0.7044 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002217/0.6901, allocations: 120 kB / 0.7045 GB, free: 11.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.6912, allocations: 425.1 kB / 0.7049 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003773/0.695, allocations: 1.209 MB / 0.7061 GB, free: 9.488 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004581/0.6996, allocations: 3.458 MB / 0.7095 GB, free: 5.922 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004141/0.7037, allocations: 295.8 kB / 0.7098 GB, free: 5.633 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008156/0.7045, allocations: 328 kB / 0.7101 GB, free: 5.312 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.003427/0.7079, allocations: 1.947 MB / 0.712 GB, free: 3.352 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008115/0.7088, allocations: 321.8 kB / 0.7123 GB, free: 3.035 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003848/0.7126, allocations: 1.878 MB / 0.7141 GB, free: 1.141 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.295e-05/0.7126, allocations: 20 kB / 0.7141 GB, free: 1.121 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.7126, allocations: 0 / 0.7141 GB, free: 1.121 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.7127, allocations: 7.984 kB / 0.7141 GB, free: 1.113 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.7241, allocations: 5.517 MB / 0.7195 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.7241, allocations: 0 / 0.7195 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.7252, allocations: 223.6 kB / 0.7197 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007451/0.7259, allocations: 248.6 kB / 0.72 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.212e-05/0.726, allocations: 27.98 kB / 0.72 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003839/0.7299, allocations: 3.043 MB / 0.723 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.7299, allocations: 7.922 kB / 0.723 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006308/0.7362, allocations: 3.954 MB / 0.7268 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.7372, allocations: 301.7 kB / 0.7271 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003095/0.7375, allocations: 23.98 kB / 0.7271 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.7386, allocations: 71.92 kB / 0.7272 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/0.7389, allocations: 100.5 kB / 0.7273 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.739, allocations: 39.98 kB / 0.7274 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003473/0.7425, allocations: 2.238 MB / 0.7295 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.7425, allocations: 0 / 0.7295 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003922/0.7464, allocations: 0.8202 MB / 0.7303 GB, free: 344 kB / 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.2853/1.032, allocations: 4.575 MB / 0.7348 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005775/1.037, allocations: 3.965 MB / 0.7387 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/1.037, allocations: 3.938 kB / 0.7387 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001377/1.039, allocations: 1.104 MB / 0.7398 GB, free: 150 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002048/1.041, allocations: 395.6 kB / 0.7401 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0405/1.081, allocations: 37.97 MB / 0.7772 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002435/1.084, allocations: 2.492 MB / 0.7797 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00299/1.087, allocations: 1.714 MB / 0.7813 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001675/1.088, allocations: 1.659 MB / 0.7829 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.132e-06/1.088, allocations: 0 / 0.7829 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09357/1.182, allocations: 56.8 MB / 0.8384 GB, free: 50.75 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/16.14, allocations: 10.27 kB / 0.8384 GB, free: 50.74 MB / 0.5606 GB " [Timeout remaining time 644] (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: 19.660146239679307]