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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001675/0.001675, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002026/0.002026, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2028/0.2028, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002637/0.002637, allocations: 71.88 kB / 482 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4565/0.4591, allocations: 62.43 MB / 0.5317 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.02694/0.4861, allocations: 15.52 MB / 0.5468 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0161/0.5023, allocations: 4.933 MB / 0.5516 GB, free: 13.37 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004439/0.5067, allocations: 99.75 kB / 0.5517 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01398/0.5208, allocations: 4.996 MB / 0.5566 GB, free: 8.262 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.5313, allocations: 2.47 MB / 0.559 GB, free: 5.781 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004144/0.5355, allocations: 1.072 MB / 0.5601 GB, free: 4.707 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01438/0.5499, allocations: 6.845 MB / 0.5668 GB, free: 13.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0114/0.5613, allocations: 5.751 MB / 0.5724 GB, free: 8.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005727/0.5671, allocations: 2.387 MB / 0.5747 GB, free: 5.625 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00694/0.5741, allocations: 3.197 MB / 0.5778 GB, free: 2.418 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002166/0.5763, allocations: 0.5 MB / 0.5783 GB, free: 1.918 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004753/0.5811, allocations: 1.397 MB / 0.5797 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00534/0.5864, allocations: 2.989 MB / 0.5826 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007207/0.5937, allocations: 3.336 MB / 0.5859 GB, free: 10.17 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01782/0.6115, allocations: 10.34 MB / 0.596 GB, free: 15.79 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.6116, allocations: 3.938 kB / 0.596 GB, free: 15.79 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.6116, allocations: 0 / 0.596 GB, free: 15.79 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003735/0.612, allocations: 0 / 0.596 GB, free: 15.79 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.02775/0.6398, allocations: 7.397 MB / 0.6032 GB, free: 8.305 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.6398, allocations: 8.031 kB / 0.6032 GB, free: 8.297 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0209/0.6608, allocations: 2.71 MB / 0.6058 GB, free: 5.574 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01603/0.6768, allocations: 4.265 MB / 0.61 GB, free: 1.227 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005361/0.6775, allocations: 361.6 kB / 0.6103 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002375/0.6799, allocations: 475.7 kB / 0.6108 GB, free: 416 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03305/0.7129, allocations: 14.25 MB / 0.6247 GB, free: 1.137 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003161/0.7133, allocations: 63.47 kB / 0.6248 GB, free: 1.074 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001648/0.715, allocations: 231.8 kB / 0.625 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004782/0.7198, allocations: 2.703 MB / 0.6276 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02422/0.744, allocations: 12.04 MB / 0.6394 GB, free: 2.074 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07899/0.823, allocations: 57.32 MB / 0.6954 GB, free: 7.281 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01514/0.8382, allocations: 6.275 MB / 0.7015 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00485/0.8431, allocations: 3.717 MB / 0.7051 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01724/0.8604, allocations: 8.523 MB / 0.7135 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.502e-05/0.8606, allocations: 64.22 kB / 0.7135 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 8.296e-06/0.8606, allocations: 3.938 kB / 0.7135 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.3612/1.222, allocations: 30.31 MB / 0.7431 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/1.222, allocations: 234.7 kB / 0.7433 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007891/1.23, allocations: 6.688 MB / 0.7499 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007177/1.231, allocations: 65.7 kB / 0.7499 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002218/1.233, allocations: 4.409 MB / 0.7542 GB, free: 144 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001352/1.234, allocations: 1.066 MB / 0.7553 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002106/1.236, allocations: 1.792 MB / 0.757 GB, free: 141.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.65e-05/1.236, allocations: 309.1 kB / 0.7573 GB, free: 140.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003915/1.24, allocations: 3.574 MB / 0.7608 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005618/1.246, allocations: 8.639 MB / 0.7693 GB, free: 126.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/1.257, allocations: 13.13 MB / 0.7821 GB, free: 110.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001402/1.257, allocations: 52 kB / 0.7821 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02261/1.28, allocations: 13.99 MB / 0.7958 GB, free: 96.51 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/1.28, allocations: 87.94 kB / 0.7959 GB, free: 96.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001693/1.28, allocations: 176 kB / 0.796 GB, free: 96.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005249/1.286, allocations: 2.281 MB / 0.7983 GB, free: 93.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006197/1.292, allocations: 2.004 MB / 0.8002 GB, free: 91.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01441/1.306, allocations: 14.35 MB / 0.8142 GB, free: 77.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006839/1.313, allocations: 0.4991 MB / 0.8147 GB, free: 76.83 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001613/1.315, allocations: 0.5253 MB / 0.8152 GB, free: 76.32 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.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 (1058): * Single equations (assignments): 1051 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004933/1.32, allocations: 2.988 MB / 0.8182 GB, free: 73.32 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/1.321, allocations: 0.5475 MB / 0.8187 GB, free: 72.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/1.331, allocations: 7.091 MB / 0.8256 GB, free: 65.65 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.451e-05/1.332, allocations: 28 kB / 0.8256 GB, free: 65.62 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.446e-05/1.332, allocations: 19.92 kB / 0.8257 GB, free: 65.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.025e-05/1.332, allocations: 11.95 kB / 0.8257 GB, free: 65.59 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02372/1.355, allocations: 14.7 MB / 0.84 GB, free: 50.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.518e-05/1.355, allocations: 4 kB / 0.84 GB, free: 50.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002142/1.358, allocations: 467.2 kB / 0.8405 GB, free: 50.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004726/1.362, allocations: 2.041 MB / 0.8425 GB, free: 48.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004957/1.363, allocations: 48 kB / 0.8425 GB, free: 48.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/1.378, allocations: 13.71 MB / 0.8559 GB, free: 34.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/1.378, allocations: 7.938 kB / 0.8559 GB, free: 34.31 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/1.393, allocations: 11.24 MB / 0.8669 GB, free: 22.92 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001924/1.395, allocations: 0.6264 MB / 0.8675 GB, free: 22.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001699/1.396, allocations: 59.98 kB / 0.8676 GB, free: 22.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00311/1.4, allocations: 191.7 kB / 0.8677 GB, free: 22.02 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000626/1.4, allocations: 181.6 kB / 0.8679 GB, free: 21.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002167/1.4, allocations: 68 kB / 0.868 GB, free: 21.78 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005892/1.406, allocations: 4.288 MB / 0.8722 GB, free: 17.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.91e-07/1.406, allocations: 0 / 0.8722 GB, free: 17.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00791/1.414, allocations: 1.585 MB / 0.8737 GB, free: 15.92 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007384/1.415, allocations: 189.4 kB / 0.8739 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01163/1.427, allocations: 8.704 MB / 0.8824 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/1.427, allocations: 0 / 0.8824 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004701/1.431, allocations: 3.418 MB / 0.8857 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004134/1.436, allocations: 0.7184 MB / 0.8864 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02498/1.461, allocations: 15.39 MB / 0.9015 GB, free: 3.414 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005669/1.466, allocations: 4.503 MB / 0.9059 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001776/1.468, allocations: 443.3 kB / 0.9063 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of SimCode: time 7.62e-07/1.468, allocations: 3.938 kB / 0.9063 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of Templates: time 0.4074/1.876, allocations: 144.3 MB / 1.047 GB, free: 122.5 MB / 0.6231 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches