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.001082/0.001082, allocations: 199.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 226.6 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007516/0.0007515, allocations: 87.05 kB / 295.5 MB, free: 6.707 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2821/0.2821, allocations: 44.82 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002684/0.0002685, allocations: 8 kB / 465.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2681, allocations: 62.95 MB / 0.5159 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.0592/0.3274, allocations: 81 MB / 0.595 GB, free: 7.613 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03611/0.3635, allocations: 16.36 MB / 0.6109 GB, free: 7.898 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01554/0.3791, allocations: 379.1 kB / 0.6113 GB, free: 7.527 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0121/0.3912, allocations: 4.285 MB / 0.6155 GB, free: 3.223 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03067/0.4219, allocations: 12.43 MB / 0.6276 GB, free: 6.75 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005394/0.4274, allocations: 0.9128 MB / 0.6285 GB, free: 5.836 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.3024/0.7298, allocations: 63.19 MB / 0.6902 GB, free: 55.07 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01083/0.7406, allocations: 7.778 MB / 0.6978 GB, free: 54.2 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00423/0.7449, allocations: 1.916 MB / 0.6997 GB, free: 54.19 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005113/0.7501, allocations: 2.964 MB / 0.7026 GB, free: 54.18 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001358/0.7515, allocations: 210.9 kB / 0.7028 GB, free: 54.18 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002963/0.7544, allocations: 1.154 MB / 0.7039 GB, free: 54.18 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002832/0.7573, allocations: 2.661 MB / 0.7065 GB, free: 54.18 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003227/0.7605, allocations: 2.846 MB / 0.7093 GB, free: 54.15 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007169/0.7677, allocations: 8.182 MB / 0.7173 GB, free: 51.58 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.7677, allocations: 0 / 0.7173 GB, free: 51.58 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.7678, allocations: 0 / 0.7173 GB, free: 51.58 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003208/0.7681, allocations: 1.641 kB / 0.7173 GB, free: 51.58 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.01231/0.7804, allocations: 6.208 MB / 0.7233 GB, free: 47.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.7805, allocations: 9.312 kB / 0.7234 GB, free: 47.86 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/0.7921, allocations: 2.833 MB / 0.7261 GB, free: 46.53 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008046/0.8002, allocations: 4.231 MB / 0.7303 GB, free: 43.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002333/0.8005, allocations: 367.8 kB / 0.7306 GB, free: 43.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001482/0.802, allocations: 482.9 kB / 0.7311 GB, free: 43.39 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02279/0.8248, allocations: 14.62 MB / 0.7453 GB, free: 31.89 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002599/0.8251, allocations: 71.48 kB / 0.7454 GB, free: 31.86 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001006/0.8261, allocations: 227.6 kB / 0.7456 GB, free: 31.79 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004113/0.8303, allocations: 2.823 MB / 0.7484 GB, free: 29.45 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02131/0.8516, allocations: 12.3 MB / 0.7604 GB, free: 20.87 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06135/0.913, allocations: 58.46 MB / 0.8175 GB, free: 3.727 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01421/0.9273, allocations: 6.281 MB / 0.8236 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004505/0.9318, allocations: 3.698 MB / 0.8272 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01448/0.9463, allocations: 8.544 MB / 0.8356 GB, free: 3.828 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.191e-05/0.9464, allocations: 60.22 kB / 0.8356 GB, free: 3.762 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=236): time 6.452e-06/0.9464, allocations: 0 / 0.8356 GB, free: 3.762 MB / 0.5261 GB Notification: Performance of matching and sorting (n=278): time 0.07627/1.023, allocations: 30.42 MB / 0.8653 GB, free: 5.207 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/1.023, allocations: 238.9 kB / 0.8656 GB, free: 4.926 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01033/1.033, allocations: 6.71 MB / 0.8721 GB, free: 14.23 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006228/1.034, allocations: 64.83 kB / 0.8722 GB, free: 14.16 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.003525/1.037, allocations: 4.498 MB / 0.8766 GB, free: 9.691 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001554/1.039, allocations: 1.071 MB / 0.8776 GB, free: 8.629 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007366/1.04, allocations: 176 kB / 0.8778 GB, free: 8.457 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0005315/1.04, allocations: 0.6818 MB / 0.8785 GB, free: 7.766 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005839/1.046, allocations: 3.546 MB / 0.8819 GB, free: 4.211 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00938/1.056, allocations: 8.65 MB / 0.8904 GB, free: 9.133 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2831/1.339, allocations: 13.14 MB / 0.9032 GB, free: 215 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002176/1.339, allocations: 55.19 kB / 0.9032 GB, free: 215 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.03731/1.376, allocations: 13.98 MB / 0.9169 GB, free: 211 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001567/1.376, allocations: 81.38 kB / 0.917 GB, free: 211 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002819/1.377, allocations: 177.6 kB / 0.9172 GB, free: 211 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008911/1.386, allocations: 2.283 MB / 0.9194 GB, free: 210.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01048/1.396, allocations: 2.011 MB / 0.9213 GB, free: 210.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02642/1.423, allocations: 13.42 MB / 0.9345 GB, free: 203.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01035/1.433, allocations: 0.5042 MB / 0.9349 GB, free: 203.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001984/1.435, allocations: 0.5231 MB / 0.9355 GB, free: 203.6 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 (1064): * Single equations (assignments): 1057 * Array equations: 5 * 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.008279/1.443, allocations: 3.042 MB / 0.9384 GB, free: 202.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001809/1.445, allocations: 0.5558 MB / 0.939 GB, free: 202.2 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0151/1.46, allocations: 7.07 MB / 0.9459 GB, free: 199.8 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.224e-05/1.46, allocations: 30.03 kB / 0.9459 GB, free: 199.8 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.758e-05/1.461, allocations: 18.42 kB / 0.9459 GB, free: 199.8 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-05/1.461, allocations: 12.8 kB / 0.9459 GB, free: 199.8 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02496/1.486, allocations: 15 MB / 0.9606 GB, free: 194.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.404e-05/1.486, allocations: 4 kB / 0.9606 GB, free: 194.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002178/1.488, allocations: 458.4 kB / 0.961 GB, free: 193.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004705/1.493, allocations: 2.035 MB / 0.963 GB, free: 192.5 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000489/1.493, allocations: 53.19 kB / 0.9631 GB, free: 192.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01382/1.507, allocations: 12.67 MB / 0.9754 GB, free: 181.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/1.507, allocations: 7.938 kB / 0.9754 GB, free: 181.2 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01513/1.522, allocations: 11.2 MB / 0.9864 GB, free: 169.9 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001657/1.524, allocations: 0.6459 MB / 0.987 GB, free: 169.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001455/1.525, allocations: 52 kB / 0.9871 GB, free: 169.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002961/1.528, allocations: 199.7 kB / 0.9873 GB, free: 169 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007444/1.529, allocations: 169.6 kB / 0.9874 GB, free: 168.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002727/1.529, allocations: 76.7 kB / 0.9875 GB, free: 168.8 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.006647/1.536, allocations: 4.286 MB / 0.9917 GB, free: 164.5 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.21e-07/1.536, allocations: 0 / 0.9917 GB, free: 164.5 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007788/1.544, allocations: 1.614 MB / 0.9932 GB, free: 162.9 MB / 0.5886 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.0005988/1.544, allocations: 198.6 kB / 0.9934 GB, free: 162.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01147/1.556, allocations: 8.649 MB / 1.002 GB, free: 154.1 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.505e-06/1.556, allocations: 4 kB / 1.002 GB, free: 154.1 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004899/1.561, allocations: 3.394 MB / 1.005 GB, free: 150.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008328/1.569, allocations: 0.7016 MB / 1.006 GB, free: 149.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02427/1.594, allocations: 17.99 MB / 1.023 GB, free: 131.8 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005465/1.599, allocations: 4.608 MB / 1.028 GB, free: 127.2 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001794/1.601, allocations: 447.3 kB / 1.028 GB, free: 126.8 MB / 0.5886 GB Notification: Performance of SimCode: time 2.766e-06/1.601, allocations: 0 / 1.028 GB, free: 126.8 MB / 0.5886 GB Notification: Performance of Templates: time 0.377/1.978, allocations: 144 MB / 1.169 GB, free: 202.8 MB / 0.5886 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/jenkins/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