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.001245/0.001245, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001391, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.211/0.211, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 75.88 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3634, allocations: 62.42 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01635/0.3798, allocations: 15.53 MB / 0.5462 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01008/0.3899, allocations: 4.924 MB / 0.551 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002804/0.3928, allocations: 103.8 kB / 0.5511 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008173/0.4009, allocations: 4.996 MB / 0.5559 GB, free: 8.113 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006773/0.4078, allocations: 2.473 MB / 0.5584 GB, free: 5.633 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003101/0.4109, allocations: 1.076 MB / 0.5594 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01059/0.4215, allocations: 6.843 MB / 0.5661 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00751/0.4291, allocations: 5.752 MB / 0.5717 GB, free: 7.867 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003995/0.4331, allocations: 2.379 MB / 0.574 GB, free: 5.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004829/0.438, allocations: 3.209 MB / 0.5772 GB, free: 2.262 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001457/0.4395, allocations: 0.5 MB / 0.5777 GB, free: 1.762 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003039/0.4425, allocations: 1.389 MB / 0.579 GB, free: 380 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003351/0.4459, allocations: 2.993 MB / 0.5819 GB, free: 13.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004278/0.4502, allocations: 3.336 MB / 0.5852 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.4603, allocations: 10.33 MB / 0.5953 GB, free: 15.65 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.4603, allocations: 4 kB / 0.5953 GB, free: 15.64 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4603, allocations: 0 / 0.5953 GB, free: 15.64 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002379/0.4606, allocations: 0 / 0.5953 GB, free: 15.64 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.01748/0.4781, allocations: 7.401 MB / 0.6025 GB, free: 8.156 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.4781, allocations: 8.031 kB / 0.6025 GB, free: 8.148 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01269/0.4908, allocations: 2.706 MB / 0.6052 GB, free: 5.43 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009636/0.5005, allocations: 4.265 MB / 0.6093 GB, free: 1.082 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003078/0.5008, allocations: 365.5 kB / 0.6097 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.5023, allocations: 483.6 kB / 0.6101 GB, free: 256 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02292/0.5253, allocations: 14.25 MB / 0.6241 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001657/0.5255, allocations: 71.44 kB / 0.6241 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005787/0.5261, allocations: 227.8 kB / 0.6243 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004606/0.5307, allocations: 2.699 MB / 0.627 GB, free: 13.99 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02301/0.5537, allocations: 12.04 MB / 0.6387 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07574/0.6295, allocations: 57.31 MB / 0.6947 GB, free: 7.137 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01541/0.6449, allocations: 6.281 MB / 0.7008 GB, free: 0.6953 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004901/0.6499, allocations: 3.72 MB / 0.7045 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01389/0.6638, allocations: 8.519 MB / 0.7128 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/0.6639, allocations: 60.2 kB / 0.7128 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 6.372e-06/0.6639, allocations: 3.984 kB / 0.7128 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.3482/1.012, allocations: 30.31 MB / 0.7425 GB, free: 155.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.959e-05/1.012, allocations: 230.4 kB / 0.7427 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007046/1.019, allocations: 6.687 MB / 0.7492 GB, free: 148.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005261/1.02, allocations: 61.7 kB / 0.7493 GB, free: 148.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001794/1.022, allocations: 4.42 MB / 0.7536 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009441/1.023, allocations: 1.065 MB / 0.7546 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001831/1.024, allocations: 1.792 MB / 0.7564 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.104e-05/1.024, allocations: 309 kB / 0.7567 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003895/1.028, allocations: 3.574 MB / 0.7601 GB, free: 137 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006309/1.035, allocations: 8.637 MB / 0.7686 GB, free: 125.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0115/1.046, allocations: 13.14 MB / 0.7814 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001369/1.046, allocations: 48 kB / 0.7815 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02107/1.067, allocations: 13.99 MB / 0.7951 GB, free: 96.24 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-05/1.068, allocations: 82.03 kB / 0.7952 GB, free: 96.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001772/1.068, allocations: 181.4 kB / 0.7954 GB, free: 95.98 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00513/1.073, allocations: 2.288 MB / 0.7976 GB, free: 93.69 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006133/1.079, allocations: 2 MB / 0.7996 GB, free: 91.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01437/1.093, allocations: 14.34 MB / 0.8136 GB, free: 77.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007376/1.101, allocations: 0.507 MB / 0.8141 GB, free: 76.56 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/1.102, allocations: 0.5078 MB / 0.8146 GB, free: 76.05 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.004603/1.107, allocations: 2.997 MB / 0.8175 GB, free: 73.05 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00103/1.108, allocations: 0.5515 MB / 0.818 GB, free: 72.49 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.119, allocations: 7.087 MB / 0.8249 GB, free: 65.38 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.625e-05/1.119, allocations: 32 kB / 0.825 GB, free: 65.35 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-05/1.119, allocations: 8 kB / 0.825 GB, free: 65.34 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.716e-05/1.119, allocations: 11.95 kB / 0.825 GB, free: 65.33 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02294/1.142, allocations: 14.71 MB / 0.8394 GB, free: 50.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.12e-05/1.142, allocations: 8 kB / 0.8394 GB, free: 50.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00214/1.144, allocations: 455.3 kB / 0.8398 GB, free: 50.12 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004801/1.149, allocations: 2.035 MB / 0.8418 GB, free: 48.07 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002948/1.149, allocations: 51.98 kB / 0.8418 GB, free: 48.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/1.164, allocations: 13.71 MB / 0.8552 GB, free: 34.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.321e-06/1.164, allocations: 8.094 kB / 0.8552 GB, free: 34.04 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/1.18, allocations: 11.24 MB / 0.8662 GB, free: 22.64 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002126/1.182, allocations: 0.6342 MB / 0.8668 GB, free: 21.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001178/1.183, allocations: 48 kB / 0.8669 GB, free: 21.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002639/1.186, allocations: 199.7 kB / 0.8671 GB, free: 21.74 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005528/1.186, allocations: 173.5 kB / 0.8672 GB, free: 21.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001939/1.186, allocations: 79.98 kB / 0.8673 GB, free: 21.49 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005149/1.191, allocations: 4.28 MB / 0.8715 GB, free: 17.22 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.41e-07/1.191, allocations: 0 / 0.8715 GB, free: 17.22 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00657/1.198, allocations: 1.58 MB / 0.873 GB, free: 15.65 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.0005561/1.199, allocations: 200.1 kB / 0.8732 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01082/1.209, allocations: 8.704 MB / 0.8817 GB, free: 6.75 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.645e-06/1.21, allocations: 0 / 0.8817 GB, free: 6.75 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004887/1.214, allocations: 3.411 MB / 0.8851 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003893/1.218, allocations: 0.7265 MB / 0.8858 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02692/1.245, allocations: 14.78 MB / 0.9002 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006719/1.252, allocations: 4.538 MB / 0.9046 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006453/1.258, allocations: 2.775 MB / 0.9073 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.26, allocations: 379.4 kB / 0.9077 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of SimCode: time 8.12e-07/1.26, allocations: 0 / 0.9077 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of Templates: time 0.404/1.664, allocations: 62.31 MB / 0.9686 GB, free: 201.6 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/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) Reference file matches