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) [Timeout 180] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001896/0.001896, allocations: 122 kB / 18.45 MB, free: 4.586 MB / 14.72 MB [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002107/0.002107, allocations: 202.5 kB / 21.4 MB, free: 1.645 MB / 14.72 MB [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.608/1.608, allocations: 227.4 MB / 251.6 MB, free: 264 kB / 190.1 MB [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2481/0.2481, allocations: 46.17 MB / 351.1 MB, free: 14.32 MB / 286.1 MB [Timeout remaining time 180] 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=5002,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=5002,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") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 77.94 kB / 490.2 MB, free: 27.81 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1247, allocations: 62.45 MB / 0.5397 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01858/0.1433, allocations: 15.52 MB / 0.5548 GB, free: 4.672 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01116/0.1545, allocations: 4.929 MB / 0.5596 GB, free: 15.72 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002771/0.1573, allocations: 99.75 kB / 0.5597 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009808/0.1671, allocations: 4.996 MB / 0.5646 GB, free: 10.61 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007761/0.175, allocations: 2.47 MB / 0.567 GB, free: 8.133 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003165/0.1782, allocations: 1.072 MB / 0.5681 GB, free: 7.059 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01317/0.1914, allocations: 6.858 MB / 0.5748 GB, free: 192 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00983/0.2013, allocations: 5.747 MB / 0.5804 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005029/0.2063, allocations: 2.383 MB / 0.5827 GB, free: 7.973 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006265/0.2126, allocations: 3.197 MB / 0.5858 GB, free: 4.766 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002411/0.2151, allocations: 0.4961 MB / 0.5863 GB, free: 4.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00494/0.2201, allocations: 1.389 MB / 0.5877 GB, free: 2.879 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005465/0.2256, allocations: 2.969 MB / 0.5906 GB, free: 15.9 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007236/0.2328, allocations: 3.344 MB / 0.5938 GB, free: 12.54 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01757/0.2505, allocations: 10.38 MB / 0.604 GB, free: 2.121 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.2505, allocations: 0 / 0.604 GB, free: 2.121 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2505, allocations: 0 / 0.604 GB, free: 2.121 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005152/0.251, allocations: 0 / 0.604 GB, free: 2.121 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.3428/0.5939, allocations: 7.585 MB / 0.6114 GB, free: 55.56 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.289e-05/0.594, allocations: 8.906 kB / 0.6114 GB, free: 55.56 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01683/0.6108, allocations: 2.746 MB / 0.6141 GB, free: 55.01 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01468/0.6255, allocations: 4.286 MB / 0.6182 GB, free: 53.44 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006464/0.6262, allocations: 354.4 kB / 0.6186 GB, free: 53.32 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002746/0.629, allocations: 488.8 kB / 0.6191 GB, free: 53.19 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03077/0.6598, allocations: 14.25 MB / 0.633 GB, free: 44.86 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000174/0.66, allocations: 74.86 kB / 0.633 GB, free: 44.81 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006416/0.6606, allocations: 230.5 kB / 0.6333 GB, free: 44.65 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003886/0.6645, allocations: 2.707 MB / 0.6359 GB, free: 43.03 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02144/0.686, allocations: 12.04 MB / 0.6477 GB, free: 30.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0714/0.7574, allocations: 57.42 MB / 0.7037 GB, free: 4.152 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01785/0.7753, allocations: 6.288 MB / 0.7099 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005311/0.7807, allocations: 3.699 MB / 0.7135 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01508/0.7958, allocations: 8.545 MB / 0.7218 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.254e-05/0.7959, allocations: 64.16 kB / 0.7219 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 5.07e-06/0.7959, allocations: 0 / 0.7219 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of matching and sorting (n=278): time 0.08689/0.8828, allocations: 30.73 MB / 0.7519 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001743/0.883, allocations: 239.6 kB / 0.7521 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01206/0.8951, allocations: 6.703 MB / 0.7587 GB, free: 11.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008483/0.896, allocations: 73.61 kB / 0.7587 GB, free: 11.23 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004974/0.901, allocations: 4.57 MB / 0.7632 GB, free: 6.621 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002192/0.9032, allocations: 1.116 MB / 0.7643 GB, free: 5.496 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00315/0.9063, allocations: 1.813 MB / 0.7661 GB, free: 3.664 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.9065, allocations: 303.2 kB / 0.7664 GB, free: 3.367 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006074/0.9126, allocations: 3.574 MB / 0.7698 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01234/0.9249, allocations: 8.637 MB / 0.7783 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01935/0.9443, allocations: 13.12 MB / 0.7911 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001371/0.9445, allocations: 59.98 kB / 0.7912 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02909/0.9736, allocations: 14.03 MB / 0.8049 GB, free: 6.934 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.9738, allocations: 80 kB / 0.8049 GB, free: 6.855 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00021/0.974, allocations: 180 kB / 0.8051 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006261/0.9802, allocations: 2.281 MB / 0.8073 GB, free: 4.391 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007094/0.9874, allocations: 2.004 MB / 0.8093 GB, free: 2.383 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02103/1.008, allocations: 14.35 MB / 0.8233 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009466/1.018, allocations: 0.5111 MB / 0.8238 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001661/1.02, allocations: 0.5144 MB / 0.8243 GB, free: 2.73 MB / 0.6075 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.005724/1.025, allocations: 2.991 MB / 0.8272 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00137/1.027, allocations: 0.582 MB / 0.8278 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01428/1.041, allocations: 7.079 MB / 0.8347 GB, free: 8.035 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-05/1.041, allocations: 28 kB / 0.8347 GB, free: 8.008 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.643e-05/1.041, allocations: 12 kB / 0.8347 GB, free: 7.996 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.16e-05/1.041, allocations: 15.94 kB / 0.8348 GB, free: 7.98 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3325/1.374, allocations: 14.71 MB / 0.8491 GB, free: 204.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.011e-05/1.374, allocations: 5.75 kB / 0.8491 GB, free: 204.1 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002497/1.376, allocations: 455 kB / 0.8496 GB, free: 204.1 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005645/1.382, allocations: 2.039 MB / 0.8515 GB, free: 203.9 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005156/1.383, allocations: 49.81 kB / 0.8516 GB, free: 203.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01632/1.399, allocations: 13.72 MB / 0.865 GB, free: 196.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/1.399, allocations: 5.5 kB / 0.865 GB, free: 196.9 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0153/1.414, allocations: 11.27 MB / 0.876 GB, free: 192.8 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/1.416, allocations: 0.6576 MB / 0.8766 GB, free: 192.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009644/1.417, allocations: 50.5 kB / 0.8767 GB, free: 192.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/1.419, allocations: 195 kB / 0.8769 GB, free: 192.6 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005231/1.42, allocations: 177.8 kB / 0.8771 GB, free: 192.6 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001958/1.42, allocations: 73.03 kB / 0.8771 GB, free: 192.6 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.005239/1.425, allocations: 4.28 MB / 0.8813 GB, free: 191.1 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/1.425, allocations: 0 / 0.8813 GB, free: 191.1 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.007702/1.433, allocations: 1.577 MB / 0.8828 GB, free: 191 MB / 0.6231 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.00071/1.434, allocations: 195.7 kB / 0.883 GB, free: 190.8 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01109/1.445, allocations: 8.711 MB / 0.8915 GB, free: 185.6 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.445, allocations: 0 / 0.8915 GB, free: 185.6 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00484/1.45, allocations: 3.425 MB / 0.8949 GB, free: 182.1 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004319/1.454, allocations: 0.728 MB / 0.8956 GB, free: 181.5 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02483/1.479, allocations: 14.99 MB / 0.9102 GB, free: 166.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007163/1.486, allocations: 4.533 MB / 0.9147 GB, free: 161.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00925/1.495, allocations: 2.771 MB / 0.9174 GB, free: 159.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002311/1.498, allocations: 383.4 kB / 0.9177 GB, free: 158.8 MB / 0.6231 GB Notification: Performance of SimCode: time 1.323e-06/1.498, allocations: 2.734 kB / 0.9177 GB, free: 158.8 MB / 0.6231 GB Notification: Performance of Templates: time 0.1018/1.599, allocations: 62.13 MB / 0.9784 GB, free: 96.95 MB / 0.6231 GB [Timeout remaining time 658] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.776422956958413]