Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009788/0.0009788, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009349/0.0009351, allocations: 94.69 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1793/0.1793, allocations: 45.15 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.045e-05/2.048e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09274/0.09278, allocations: 63.26 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3751/0.4679, allocations: 109.2 MB / 0.611 GB, free: 9.668 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/0.4681, allocations: 73.09 kB / 0.611 GB, free: 9.633 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.298/0.7661, allocations: 125.6 MB / 0.7337 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.804e-06/0.7662, allocations: 0 / 0.7337 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000306/0.7665, allocations: 132 kB / 0.7339 GB, free: 3.793 MB / 0.5105 GB 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.02052/0.787, allocations: 6.428 MB / 0.7401 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.7871, allocations: 12.03 kB / 0.7401 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02798/0.8151, allocations: 7.062 MB / 0.747 GB, free: 6.191 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3161/1.131, allocations: 6.308 MB / 0.7532 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004049/1.132, allocations: 204.2 kB / 0.7534 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002582/1.134, allocations: 374.5 kB / 0.7537 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01823/1.152, allocations: 8.603 MB / 0.7621 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02517/1.178, allocations: 13.48 MB / 0.7753 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000275/1.178, allocations: 89.56 kB / 0.7754 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001118/1.179, allocations: 46.25 kB / 0.7754 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001522/1.181, allocations: 1.433 MB / 0.7768 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05906/1.24, allocations: 66.91 MB / 0.8422 GB, free: 65.33 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005176/1.245, allocations: 4.854 MB / 0.8469 GB, free: 63.05 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003086/1.248, allocations: 3.213 MB / 0.8501 GB, free: 61.72 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004636/1.249, allocations: 380.5 kB / 0.8504 GB, free: 61.42 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/1.249, allocations: 63.14 kB / 0.8505 GB, free: 61.36 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=230): time 6.061e-06/1.249, allocations: 0 / 0.8505 GB, free: 61.36 MB / 0.5261 GB Notification: Performance of matching and sorting (n=274): time 0.04736/1.296, allocations: 26.27 MB / 0.8761 GB, free: 50.96 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/1.296, allocations: 232.8 kB / 0.8764 GB, free: 50.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00599/1.302, allocations: 4.586 MB / 0.8808 GB, free: 49.08 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006141/1.303, allocations: 25.7 kB / 0.8809 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002133/1.305, allocations: 4.653 MB / 0.8854 GB, free: 45.55 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001055/1.306, allocations: 1.023 MB / 0.8864 GB, free: 44.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003364/1.306, allocations: 3.969 kB / 0.8864 GB, free: 44.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003406/1.307, allocations: 0.6758 MB / 0.8871 GB, free: 44.34 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003536/1.31, allocations: 3.084 MB / 0.8901 GB, free: 42.36 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005328/1.316, allocations: 8.265 MB / 0.8982 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005691/1.321, allocations: 4.982 MB / 0.903 GB, free: 28.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.9e-05/1.321, allocations: 52 kB / 0.9031 GB, free: 28.03 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.01956/1.341, allocations: 11.66 MB / 0.9145 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/1.341, allocations: 85 kB / 0.9145 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002217/1.341, allocations: 184 kB / 0.9147 GB, free: 17.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003638/1.345, allocations: 1.71 MB / 0.9164 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006953/1.352, allocations: 2.047 MB / 0.9184 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/1.363, allocations: 10.72 MB / 0.9289 GB, free: 5.215 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007479/1.371, allocations: 342.5 kB / 0.9292 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001785/1.373, allocations: 0.5327 MB / 0.9297 GB, free: 4.438 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1063): * Single equations (assignments): 1058 * 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%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00134/1.374, allocations: 0.5699 MB / 0.9303 GB, free: 3.863 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/1.375, allocations: 497.1 kB / 0.9307 GB, free: 3.375 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009434/1.385, allocations: 5.777 MB / 0.9364 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.943e-05/1.385, allocations: 28 kB / 0.9364 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.049e-05/1.385, allocations: 9.875 kB / 0.9364 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-05/1.385, allocations: 15.11 kB / 0.9364 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02425/1.409, allocations: 12.53 MB / 0.9487 GB, free: 4.688 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.468e-05/1.409, allocations: 7.953 kB / 0.9487 GB, free: 4.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002309/1.412, allocations: 469.2 kB / 0.9491 GB, free: 4.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003465/1.415, allocations: 1.399 MB / 0.9505 GB, free: 3.344 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003052/1.415, allocations: 8 kB / 0.9505 GB, free: 3.336 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3561/1.772, allocations: 9.835 MB / 0.9601 GB, free: 112.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/1.772, allocations: 4.281 kB / 0.9601 GB, free: 112.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01531/1.787, allocations: 9.795 MB / 0.9697 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001667/1.789, allocations: 0.5081 MB / 0.9702 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006292/1.789, allocations: 8.641 kB / 0.9702 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002129/1.791, allocations: 146.3 kB / 0.9703 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004698/1.792, allocations: 166.6 kB / 0.9705 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001996/1.792, allocations: 67.55 kB / 0.9705 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.005432/1.798, allocations: 3.08 MB / 0.9735 GB, free: 110.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/1.798, allocations: 0 / 0.9735 GB, free: 110.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00743/1.805, allocations: 1.329 MB / 0.9748 GB, free: 110.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (216): * Single equations (assignments): 211 * 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.0005039/1.806, allocations: 160.5 kB / 0.975 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01021/1.816, allocations: 7.849 MB / 0.9827 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/1.816, allocations: 0 / 0.9827 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003965/1.82, allocations: 2.964 MB / 0.9855 GB, free: 110.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00317/1.823, allocations: 0.544 MB / 0.9861 GB, free: 110.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02004/1.843, allocations: 11.99 MB / 0.9978 GB, free: 108 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004589/1.848, allocations: 4.767 MB / 1.002 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006338/1.854, allocations: 2.805 MB / 1.005 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001014/1.855, allocations: 344.3 kB / 1.006 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of SimCode: time 9.92e-07/1.855, allocations: 2.594 kB / 1.006 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of Templates: time 0.0832/1.938, allocations: 50.07 MB / 1.054 GB, free: 97.05 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches