Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3") translateModel(ModelicaTest.MultiBody.Forces.Torque3,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009741/0.000974, allocations: 190.1 kB / 16.78 MB, free: 5.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.5 MB / 244.1 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007844/0.0007845, allocations: 96.03 kB / 296.1 MB, free: 6.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4542/0.4542, allocations: 44.82 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002596, allocations: 11.98 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2982, allocations: 62.95 MB / 0.5165 GB, free: 37.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.4332, allocations: 111.7 MB / 0.6255 GB, free: 9.664 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.4335, allocations: 75.95 kB / 0.6256 GB, free: 9.59 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6585/1.092, allocations: 205.2 MB / 0.826 GB, free: 15.68 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.317e-06/1.092, allocations: 0 / 0.826 GB, free: 15.68 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006765/1.093, allocations: 220 kB / 0.8262 GB, free: 15.47 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: 3739 * Number of variables: 3739 Notification: Performance of Generate backend data structure: time 0.03571/1.128, allocations: 11.06 MB / 0.837 GB, free: 4.297 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/1.129, allocations: 12.03 kB / 0.837 GB, free: 4.285 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03766/1.166, allocations: 9.138 MB / 0.8459 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02385/1.19, allocations: 9.82 MB / 0.8555 GB, free: 1.223 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008346/1.191, allocations: 0.8188 MB / 0.8563 GB, free: 412 kB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00485/1.196, allocations: 1.094 MB / 0.8574 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05881/1.255, allocations: 25.6 MB / 0.8824 GB, free: 3.777 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006726/1.255, allocations: 135 kB / 0.8825 GB, free: 3.645 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004458/1.26, allocations: 0.5114 MB / 0.883 GB, free: 3.133 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003498/1.263, allocations: 2.357 MB / 0.8853 GB, free: 0.7734 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3406/1.604, allocations: 20.88 MB / 0.9057 GB, free: 74.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1257/1.73, allocations: 108.4 MB / 1.012 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02891/1.759, allocations: 12.15 MB / 1.023 GB, free: 8.793 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007953/1.767, allocations: 7.017 MB / 1.03 GB, free: 5.898 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002029/1.769, allocations: 2.334 MB / 1.033 GB, free: 3.836 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.899e-05/1.769, allocations: 85.19 kB / 1.033 GB, free: 3.762 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=443): time 7.423e-06/1.769, allocations: 0 / 1.033 GB, free: 3.762 MB / 0.5261 GB Notification: Performance of matching and sorting (n=527): time 0.1574/1.926, allocations: 56.13 MB / 1.087 GB, free: 12.5 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/1.926, allocations: 321 kB / 1.088 GB, free: 12.13 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02223/1.949, allocations: 9.684 MB / 1.097 GB, free: 4.117 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001362/1.95, allocations: 105.7 kB / 1.097 GB, free: 4.008 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.301/2.251, allocations: 7.129 MB / 1.104 GB, free: 122.7 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00253/2.254, allocations: 1.946 MB / 1.106 GB, free: 121.9 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001368/2.255, allocations: 257.6 kB / 1.106 GB, free: 121.9 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0006291/2.256, allocations: 0.8495 MB / 1.107 GB, free: 121.6 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008396/2.264, allocations: 5.59 MB / 1.113 GB, free: 121.5 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01288/2.277, allocations: 12.68 MB / 1.125 GB, free: 112.5 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02125/2.298, allocations: 19.82 MB / 1.144 GB, free: 103.6 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003661/2.299, allocations: 70.66 kB / 1.145 GB, free: 103.6 MB / 0.573 GB Notification: Performance of matching and sorting (n=1662) (initialization): time 0.04327/2.342, allocations: 21 MB / 1.165 GB, free: 101.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005252/2.343, allocations: 110.9 kB / 1.165 GB, free: 101.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006186/2.343, allocations: 249.2 kB / 1.165 GB, free: 101.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008367/2.352, allocations: 3.212 MB / 1.169 GB, free: 101.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01156/2.363, allocations: 3.089 MB / 1.172 GB, free: 101.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02709/2.39, allocations: 22.57 MB / 1.194 GB, free: 89.88 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01166/2.402, allocations: 0.761 MB / 1.194 GB, free: 89.66 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003241/2.405, allocations: 0.7395 MB / 1.195 GB, free: 89.56 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1122 * Number of states: 0 () * Number of discrete variables: 126 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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],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 (1542): * Single equations (assignments): 1535 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01459/2.42, allocations: 4.877 MB / 1.2 GB, free: 87.37 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002697/2.423, allocations: 0.8722 MB / 1.201 GB, free: 86.89 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02598/2.449, allocations: 12.36 MB / 1.213 GB, free: 82.41 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.221e-05/2.449, allocations: 57.33 kB / 1.213 GB, free: 82.41 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.832e-05/2.449, allocations: 18.38 kB / 1.213 GB, free: 82.41 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000134/2.449, allocations: 26.16 kB / 1.213 GB, free: 82.41 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06185/2.511, allocations: 27.27 MB / 1.239 GB, free: 65.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.635e-05/2.511, allocations: 4 kB / 1.239 GB, free: 65.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005099/2.516, allocations: 0.9811 MB / 1.24 GB, free: 64.94 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007379/2.523, allocations: 2.83 MB / 1.243 GB, free: 62.97 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001564/2.525, allocations: 95.94 kB / 1.243 GB, free: 62.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02417/2.549, allocations: 21.07 MB / 1.264 GB, free: 44.05 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.166e-06/2.549, allocations: 11.94 kB / 1.264 GB, free: 44.04 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03248/2.582, allocations: 19.13 MB / 1.283 GB, free: 27.53 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003086/2.585, allocations: 0.934 MB / 1.283 GB, free: 26.61 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003656/2.589, allocations: 98 kB / 1.284 GB, free: 26.52 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006544/2.595, allocations: 414 kB / 1.284 GB, free: 26.26 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002091/2.597, allocations: 325.1 kB / 1.284 GB, free: 26.05 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0015/2.599, allocations: 135.9 kB / 1.284 GB, free: 25.92 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.015/2.614, allocations: 6.191 MB / 1.29 GB, free: 20.89 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.51e-07/2.614, allocations: 2.078 kB / 1.29 GB, free: 20.89 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0168/2.631, allocations: 2.633 MB / 1.293 GB, free: 18.27 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,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 (435): * Single equations (assignments): 428 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.00203/2.633, allocations: 279.3 kB / 1.293 GB, free: 18 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0235/2.656, allocations: 14.09 MB / 1.307 GB, free: 5.617 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/2.656, allocations: 3.281 kB / 1.307 GB, free: 5.617 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.3167/2.973, allocations: 6.133 MB / 1.313 GB, free: 107.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01851/2.992, allocations: 1.247 MB / 1.314 GB, free: 107.3 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05487/3.047, allocations: 30.71 MB / 1.344 GB, free: 96.82 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01656/3.063, allocations: 7.365 MB / 1.351 GB, free: 95.82 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004051/3.067, allocations: 0.6762 MB / 1.352 GB, free: 95.81 MB / 0.573 GB Notification: Performance of SimCode: time 1.223e-06/3.067, allocations: 0 / 1.352 GB, free: 95.81 MB / 0.573 GB Notification: Performance of Templates: time 0.6917/3.759, allocations: 328.3 MB / 1.673 GB, free: 67.32 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque3/Torque3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches