Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009509/0.0009509, allocations: 169.3 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 221.5 MB / 230.7 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009557/0.0009557, allocations: 93.92 kB / 281.6 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.199/0.199, allocations: 44.15 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.069e-05/2.1e-05, allocations: 4.219 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1189, allocations: 61.92 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4185/0.5374, allocations: 108.3 MB / 0.6004 GB, free: 4.219 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.5378, allocations: 79.95 kB / 0.6005 GB, free: 4.141 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6054/1.143, allocations: 123.1 MB / 0.7207 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.643e-06/1.143, allocations: 0 / 0.7207 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005621/1.144, allocations: 132.5 kB / 0.7208 GB, free: 105.1 MB / 0.4948 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.02473/1.169, allocations: 6.337 MB / 0.727 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/1.169, allocations: 13.64 kB / 0.727 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02819/1.197, allocations: 7.074 MB / 0.7339 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/1.214, allocations: 6.934 MB / 0.7407 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000348/1.215, allocations: 212.4 kB / 0.7409 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002871/1.218, allocations: 378.3 kB / 0.7413 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01603/1.234, allocations: 8.598 MB / 0.7497 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02164/1.255, allocations: 13.49 MB / 0.7628 GB, free: 94.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002169/1.256, allocations: 88.31 kB / 0.7629 GB, free: 94.69 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008018/1.256, allocations: 41.28 kB / 0.763 GB, free: 94.69 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001463/1.258, allocations: 1.431 MB / 0.7644 GB, free: 94.45 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.058/1.316, allocations: 66.9 MB / 0.8297 GB, free: 39.76 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00519/1.321, allocations: 4.86 MB / 0.8344 GB, free: 35.24 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003351/1.324, allocations: 3.207 MB / 0.8376 GB, free: 32.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005011/1.325, allocations: 384.5 kB / 0.8379 GB, free: 31.91 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/1.325, allocations: 71.33 kB / 0.838 GB, free: 31.84 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=230): time 5.561e-06/1.325, allocations: 0 / 0.838 GB, free: 31.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=274): time 0.04619/1.371, allocations: 26.28 MB / 0.8637 GB, free: 7.363 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/1.371, allocations: 236.2 kB / 0.8639 GB, free: 7.086 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007073/1.378, allocations: 4.576 MB / 0.8684 GB, free: 2.531 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001055/1.38, allocations: 29.7 kB / 0.8684 GB, free: 2.496 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003714/1.383, allocations: 4.652 MB / 0.8729 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001822/1.385, allocations: 1.026 MB / 0.8739 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005163/1.386, allocations: 0 / 0.8739 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000525/1.386, allocations: 0.6739 MB / 0.8746 GB, free: 12.05 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00514/1.391, allocations: 3.094 MB / 0.8776 GB, free: 8.953 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01013/1.402, allocations: 8.257 MB / 0.8857 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01014/1.412, allocations: 4.994 MB / 0.8906 GB, free: 9.098 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001812/1.412, allocations: 56 kB / 0.8906 GB, free: 9.043 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.3418/1.754, allocations: 11.64 MB / 0.902 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002/1.754, allocations: 84.33 kB / 0.9021 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003925/1.754, allocations: 187.4 kB / 0.9022 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00687/1.761, allocations: 1.698 MB / 0.9039 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01196/1.773, allocations: 2.045 MB / 0.9059 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02118/1.795, allocations: 10.73 MB / 0.9164 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01045/1.805, allocations: 344.8 kB / 0.9167 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002483/1.808, allocations: 0.5208 MB / 0.9172 GB, free: 112.8 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.002444/1.81, allocations: 0.5816 MB / 0.9178 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/1.811, allocations: 490.1 kB / 0.9183 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009779/1.821, allocations: 5.771 MB / 0.9239 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.705e-05/1.821, allocations: 28.56 kB / 0.9239 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-05/1.821, allocations: 11.75 kB / 0.9239 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-05/1.821, allocations: 13.5 kB / 0.9239 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02571/1.847, allocations: 12.52 MB / 0.9362 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.917e-05/1.847, allocations: 0 / 0.9362 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002459/1.849, allocations: 478.1 kB / 0.9366 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003545/1.853, allocations: 1.401 MB / 0.938 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004563/1.853, allocations: 11 kB / 0.938 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0144/1.868, allocations: 9.831 MB / 0.9476 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/1.868, allocations: 3.25 kB / 0.9476 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01636/1.884, allocations: 9.787 MB / 0.9572 GB, free: 103 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002268/1.887, allocations: 0.5161 MB / 0.9577 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002165/1.889, allocations: 6.562 kB / 0.9577 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004334/1.893, allocations: 142.9 kB / 0.9578 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008613/1.894, allocations: 159.4 kB / 0.958 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002938/1.894, allocations: 73.8 kB / 0.958 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007935/1.902, allocations: 3.076 MB / 0.961 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.11e-07/1.902, allocations: 0 / 0.961 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01126/1.914, allocations: 1.331 MB / 0.9623 GB, free: 101.5 MB / 0.5261 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.0009775/1.915, allocations: 151.6 kB / 0.9625 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01281/1.928, allocations: 7.848 MB / 0.9701 GB, free: 99.03 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/1.928, allocations: 6.75 kB / 0.9702 GB, free: 99.03 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004483/1.932, allocations: 2.955 MB / 0.973 GB, free: 97.86 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003842/1.936, allocations: 0.536 MB / 0.9736 GB, free: 97.65 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02687/1.963, allocations: 12 MB / 0.9853 GB, free: 93.49 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006216/1.969, allocations: 4.774 MB / 0.9899 GB, free: 91.73 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00718/1.976, allocations: 2.802 MB / 0.9927 GB, free: 90.07 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001313/1.978, allocations: 345.5 kB / 0.993 GB, free: 89.75 MB / 0.5261 GB Notification: Performance of SimCode: time 1.272e-06/1.978, allocations: 0 / 0.993 GB, free: 89.75 MB / 0.5261 GB Notification: Performance of Templates: time 0.0828/2.06, allocations: 50.08 MB / 1.042 GB, free: 48.08 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches