Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,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_cpp_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,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_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001163, allocations: 193.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 226.5 MB / 244.1 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00078/0.00078, allocations: 105.2 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3085/0.3085, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002718, allocations: 11.98 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2683, allocations: 62.95 MB / 0.5165 GB, free: 37.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.3873, allocations: 109.9 MB / 0.6238 GB, free: 11.46 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.3876, allocations: 87.94 kB / 0.6239 GB, free: 11.38 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4867/0.8743, allocations: 125.3 MB / 0.7462 GB, free: 90.89 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.8744, allocations: 0 / 0.7462 GB, free: 90.89 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003913/0.8748, allocations: 123.5 kB / 0.7464 GB, free: 90.89 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01992/0.8947, allocations: 6.626 MB / 0.7528 GB, free: 86.42 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.8948, allocations: 15.25 kB / 0.7528 GB, free: 86.41 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02172/0.9165, allocations: 5.41 MB / 0.7581 GB, free: 83.55 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01258/0.9291, allocations: 5.67 MB / 0.7637 GB, free: 79.52 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004181/0.9296, allocations: 480.9 kB / 0.7641 GB, free: 79.05 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002741/0.9323, allocations: 0.6212 MB / 0.7647 GB, free: 78.43 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03261/0.9649, allocations: 15.14 MB / 0.7795 GB, free: 61.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000472/0.9655, allocations: 87.31 kB / 0.7796 GB, free: 61.73 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003011/0.9685, allocations: 315.8 kB / 0.7799 GB, free: 61.42 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002048/0.9706, allocations: 1.431 MB / 0.7813 GB, free: 59.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02389/0.9945, allocations: 12.1 MB / 0.7931 GB, free: 47.86 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07664/1.071, allocations: 69.8 MB / 0.8613 GB, free: 7.992 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01526/1.086, allocations: 6.008 MB / 0.8671 GB, free: 1.828 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004767/1.091, allocations: 3.415 MB / 0.8705 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01567/1.107, allocations: 8.272 MB / 0.8786 GB, free: 5.953 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.696e-05/1.107, allocations: 60.16 kB / 0.8786 GB, free: 5.887 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=236): time 5.059e-06/1.107, allocations: 4 kB / 0.8786 GB, free: 5.883 MB / 0.5261 GB Notification: Performance of matching and sorting (n=278): time 0.3007/1.408, allocations: 27.46 MB / 0.9054 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.677e-05/1.408, allocations: 236.2 kB / 0.9057 GB, free: 126 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/1.419, allocations: 6.681 MB / 0.9122 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005505/1.42, allocations: 67.67 kB / 0.9122 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003223/1.423, allocations: 4.574 MB / 0.9167 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001269/1.424, allocations: 1.069 MB / 0.9178 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005121/1.425, allocations: 169.1 kB / 0.9179 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004615/1.425, allocations: 0.6627 MB / 0.9186 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005048/1.43, allocations: 3.24 MB / 0.9217 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005984/1.436, allocations: 8.343 MB / 0.9299 GB, free: 114 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/1.448, allocations: 12.6 MB / 0.9422 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001366/1.448, allocations: 50.69 kB / 0.9422 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.02094/1.469, allocations: 12.78 MB / 0.9547 GB, free: 99.72 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.486e-05/1.469, allocations: 80.25 kB / 0.9548 GB, free: 99.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001643/1.469, allocations: 183.9 kB / 0.955 GB, free: 99.72 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003792/1.473, allocations: 1.67 MB / 0.9566 GB, free: 99.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006862/1.48, allocations: 1.985 MB / 0.9585 GB, free: 99.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/1.491, allocations: 11.37 MB / 0.9696 GB, free: 93.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007395/1.499, allocations: 499.5 kB / 0.9701 GB, free: 92.94 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00155/1.5, allocations: 0.5103 MB / 0.9706 GB, free: 92.88 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * Number of states: 0 () * Number of discrete variables: 67 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1031): * Single equations (assignments): 1026 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006452/1.507, allocations: 3.044 MB / 0.9736 GB, free: 90.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/1.508, allocations: 0.5746 MB / 0.9741 GB, free: 90.21 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01028/1.519, allocations: 6.117 MB / 0.9801 GB, free: 85.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.249e-05/1.519, allocations: 32.7 kB / 0.9801 GB, free: 85.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.396e-05/1.519, allocations: 8 kB / 0.9802 GB, free: 85.26 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.619e-05/1.519, allocations: 20.73 kB / 0.9802 GB, free: 85.25 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02842/1.547, allocations: 13.95 MB / 0.9938 GB, free: 74.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.58e-05/1.547, allocations: 4 kB / 0.9938 GB, free: 74.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002296/1.55, allocations: 0.4983 MB / 0.9943 GB, free: 73.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003286/1.553, allocations: 1.41 MB / 0.9957 GB, free: 72.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004305/1.553, allocations: 55.09 kB / 0.9957 GB, free: 72.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01131/1.565, allocations: 10.57 MB / 1.006 GB, free: 63.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/1.565, allocations: 4.859 kB / 1.006 GB, free: 63.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01361/1.578, allocations: 9.987 MB / 1.016 GB, free: 54.47 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001868/1.58, allocations: 0.6354 MB / 1.016 GB, free: 53.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001612/1.582, allocations: 48 kB / 1.016 GB, free: 53.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003126/1.585, allocations: 195 kB / 1.017 GB, free: 53.67 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000625/1.586, allocations: 166.5 kB / 1.017 GB, free: 53.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000295/1.586, allocations: 79.7 kB / 1.017 GB, free: 53.49 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007789/1.594, allocations: 4.274 MB / 1.021 GB, free: 49.75 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.41e-07/1.594, allocations: 0 / 1.021 GB, free: 49.75 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008999/1.603, allocations: 1.545 MB / 1.023 GB, free: 48.21 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (220): * Single equations (assignments): 215 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008742/1.604, allocations: 206.2 kB / 1.023 GB, free: 48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01183/1.615, allocations: 8.053 MB / 1.031 GB, free: 39.96 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/1.616, allocations: 0 / 1.031 GB, free: 39.96 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004929/1.62, allocations: 3.119 MB / 1.034 GB, free: 36.81 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01124/1.632, allocations: 0.7309 MB / 1.034 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03132/1.663, allocations: 17.8 MB / 1.052 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0077/1.671, allocations: 4.635 MB / 1.056 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00197/1.673, allocations: 439.4 kB / 1.057 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of SimCode: time 1.313e-06/1.673, allocations: 4 kB / 1.057 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of Templates: time 0.453/2.126, allocations: 143.7 MB / 1.197 GB, free: 71.34 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches