Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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: translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001435, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 247.5 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2388/0.2388, allocations: 46.12 MB / 344.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002203/0.002204, allocations: 74 kB / 418.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.117, allocations: 62.45 MB / 480.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.01707/0.1341, allocations: 13.99 MB / 494.8 MB, free: 7.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01087/0.145, allocations: 4.766 MB / 499.5 MB, free: 2.398 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002431/0.1475, allocations: 87.75 kB / 499.6 MB, free: 2.312 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008755/0.1563, allocations: 4.474 MB / 0.4923 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00652/0.1629, allocations: 2.225 MB / 0.4944 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003223/0.1661, allocations: 1.127 MB / 0.4955 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009981/0.1761, allocations: 6.413 MB / 0.5018 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2035/0.3796, allocations: 5.436 MB / 0.5071 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004536/0.3842, allocations: 2.205 MB / 0.5093 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005305/0.3895, allocations: 2.972 MB / 0.5122 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002/0.3916, allocations: 492.8 kB / 0.5126 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003856/0.3955, allocations: 1.494 MB / 0.5141 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004248/0.3997, allocations: 2.748 MB / 0.5168 GB, free: 14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00571/0.4055, allocations: 3.108 MB / 0.5198 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.417, allocations: 9.53 MB / 0.5291 GB, free: 9.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.417, allocations: 0.625 kB / 0.5291 GB, free: 9.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.417, allocations: 0.9375 kB / 0.5291 GB, free: 9.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003698/0.4174, allocations: 1.094 kB / 0.5291 GB, free: 9.645 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2021 * Number of variables: 2021 Notification: Performance of Generate backend data structure: time 0.01969/0.4371, allocations: 6.796 MB / 0.5358 GB, free: 5.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.4372, allocations: 11.2 kB / 0.5358 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01228/0.4494, allocations: 2.62 MB / 0.5383 GB, free: 3.809 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008288/0.4578, allocations: 3.839 MB / 0.5421 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002437/0.4581, allocations: 336.1 kB / 0.5424 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001871/0.4599, allocations: 459.8 kB / 0.5428 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03057/0.4905, allocations: 13.98 MB / 0.5565 GB, free: 5.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002478/0.4908, allocations: 64 kB / 0.5566 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001242/0.4921, allocations: 212.9 kB / 0.5568 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005176/0.4973, allocations: 2.539 MB / 0.5592 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02798/0.5253, allocations: 12.01 MB / 0.571 GB, free: 6.609 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07905/0.6043, allocations: 53.46 MB / 0.6232 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01911/0.6235, allocations: 6.514 MB / 0.6295 GB, free: 9.871 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005474/0.629, allocations: 3.595 MB / 0.633 GB, free: 6.27 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000181/0.6293, allocations: 53.02 kB / 0.6331 GB, free: 6.23 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.182e-05/0.6293, allocations: 58.5 kB / 0.6332 GB, free: 6.168 MB / 478.1 MB Notification: Performance of pre-optimization done (n=218): time 5.982e-06/0.6293, allocations: 0 / 0.6332 GB, free: 6.168 MB / 478.1 MB Notification: Performance of matching and sorting (n=260): time 0.09862/0.728, allocations: 31.57 MB / 0.664 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001777/0.7282, allocations: 209.9 kB / 0.6642 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01155/0.7397, allocations: 5.956 MB / 0.67 GB, free: 312 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0009335/0.7407, allocations: 68.67 kB / 0.6701 GB, free: 240 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.004041/0.7448, allocations: 3.982 MB / 0.674 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002033/0.7468, allocations: 0.9937 MB / 0.6749 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003477/0.7503, allocations: 1.609 MB / 0.6765 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.7505, allocations: 305.1 kB / 0.6768 GB, free: 9.359 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006441/0.757, allocations: 3.469 MB / 0.6802 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01138/0.7684, allocations: 7.889 MB / 0.6879 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01804/0.7864, allocations: 12.16 MB / 0.6998 GB, free: 14.13 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001595/0.7867, allocations: 44 kB / 0.6998 GB, free: 14.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.03031/0.817, allocations: 13.2 MB / 0.7127 GB, free: 0.875 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.8172, allocations: 72 kB / 0.7128 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002394/0.8174, allocations: 152.8 kB / 0.7129 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2342/1.052, allocations: 2.261 MB / 0.7151 GB, free: 185.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006768/1.058, allocations: 1.799 MB / 0.7169 GB, free: 185.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01841/1.077, allocations: 14.42 MB / 0.731 GB, free: 180 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007135/1.084, allocations: 489.7 kB / 0.7314 GB, free: 179.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001591/1.086, allocations: 465.7 kB / 0.7319 GB, free: 179.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 703 * Number of states: 0 () * Number of discrete variables: 62 (frameTorque2.torqueArrow.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (940): * Single equations (assignments): 935 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005778/1.091, allocations: 2.769 MB / 0.7346 GB, free: 178.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/1.093, allocations: 0.4965 MB / 0.7351 GB, free: 178.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01173/1.104, allocations: 7.121 MB / 0.742 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.138e-05/1.104, allocations: 29.69 kB / 0.742 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.488e-05/1.104, allocations: 11.31 kB / 0.742 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.74e-05/1.104, allocations: 14.44 kB / 0.7421 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02432/1.129, allocations: 14.59 MB / 0.7563 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.843e-05/1.129, allocations: 0 / 0.7563 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00257/1.131, allocations: 454.1 kB / 0.7567 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00514/1.137, allocations: 2.038 MB / 0.7587 GB, free: 168.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006797/1.137, allocations: 44 kB / 0.7588 GB, free: 168.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/1.152, allocations: 13.65 MB / 0.7721 GB, free: 155 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/1.152, allocations: 7.5 kB / 0.7721 GB, free: 155 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01596/1.168, allocations: 11.3 MB / 0.7831 GB, free: 143.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001702/1.17, allocations: 0.5681 MB / 0.7837 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001341/1.171, allocations: 55.09 kB / 0.7838 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002686/1.174, allocations: 224.4 kB / 0.784 GB, free: 143.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005416/1.174, allocations: 153.7 kB / 0.7841 GB, free: 143 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001983/1.175, allocations: 64 kB / 0.7842 GB, free: 142.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00569/1.18, allocations: 3.797 MB / 0.7879 GB, free: 139.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.91e-07/1.18, allocations: 0 / 0.7879 GB, free: 139.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008252/1.189, allocations: 1.491 MB / 0.7893 GB, free: 137.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (202): * Single equations (assignments): 197 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008017/1.19, allocations: 187.2 kB / 0.7895 GB, free: 137.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01624/1.206, allocations: 11.21 MB / 0.8005 GB, free: 126.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.206, allocations: 4 kB / 0.8005 GB, free: 126.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005744/1.212, allocations: 3.481 MB / 0.8039 GB, free: 122.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004903/1.216, allocations: 0.6733 MB / 0.8045 GB, free: 122.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02166/1.238, allocations: 14.51 MB / 0.8187 GB, free: 107.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00584/1.244, allocations: 4.219 MB / 0.8228 GB, free: 103.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001952/1.246, allocations: 395.4 kB / 0.8232 GB, free: 103 MB / 0.545 GB Notification: Performance of SimCode: time 7.52e-07/1.246, allocations: 0 / 0.8232 GB, free: 103 MB / 0.545 GB Notification: Performance of Templates: time 0.3751/1.621, allocations: 133.2 MB / 0.9533 GB, free: 165.4 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameForcesAndTorques2/FrameForcesAndTorques2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches