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.001126/0.001126, allocations: 118.8 kB / 17.78 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.001077/0.001077, allocations: 202 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.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2432/0.2432, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 71.89 kB / 481.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.374, allocations: 62.44 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01503/0.389, allocations: 15.52 MB / 0.5462 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.4, allocations: 4.931 MB / 0.551 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002657/0.4027, allocations: 103.8 kB / 0.5511 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008358/0.4111, allocations: 4.992 MB / 0.5559 GB, free: 8.055 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006387/0.4175, allocations: 2.548 MB / 0.5584 GB, free: 5.496 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002746/0.4203, allocations: 1.076 MB / 0.5595 GB, free: 4.418 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009909/0.4302, allocations: 6.848 MB / 0.5662 GB, free: 13.55 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007396/0.4376, allocations: 5.76 MB / 0.5718 GB, free: 7.723 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003894/0.4416, allocations: 2.379 MB / 0.5741 GB, free: 5.336 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00503/0.4466, allocations: 3.205 MB / 0.5773 GB, free: 2.121 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002214/0.4489, allocations: 0.5039 MB / 0.5777 GB, free: 1.617 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003909/0.4528, allocations: 1.389 MB / 0.5791 GB, free: 232 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004058/0.4569, allocations: 2.993 MB / 0.582 GB, free: 13.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006269/0.4632, allocations: 3.336 MB / 0.5853 GB, free: 9.871 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01597/0.4792, allocations: 10.34 MB / 0.5954 GB, free: 15.5 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.4792, allocations: 0 / 0.5954 GB, free: 15.5 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4792, allocations: 3.938 kB / 0.5954 GB, free: 15.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004815/0.4797, allocations: 0 / 0.5954 GB, free: 15.5 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.02172/0.5015, allocations: 7.397 MB / 0.6026 GB, free: 8.012 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.5015, allocations: 8.031 kB / 0.6026 GB, free: 8.004 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01283/0.5143, allocations: 2.71 MB / 0.6053 GB, free: 5.281 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009923/0.5243, allocations: 4.265 MB / 0.6094 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003701/0.5247, allocations: 361.5 kB / 0.6098 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001883/0.5266, allocations: 479.6 kB / 0.6102 GB, free: 112 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0311/0.5577, allocations: 14.25 MB / 0.6241 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003337/0.5581, allocations: 59.45 kB / 0.6242 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001756/0.5599, allocations: 231.8 kB / 0.6244 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004842/0.5648, allocations: 2.699 MB / 0.6271 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0266/0.5914, allocations: 12.04 MB / 0.6388 GB, free: 1.781 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07469/0.6661, allocations: 57.32 MB / 0.6948 GB, free: 6.992 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01723/0.6834, allocations: 6.281 MB / 0.7009 GB, free: 0.5508 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005089/0.6885, allocations: 3.708 MB / 0.7045 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01702/0.7056, allocations: 8.519 MB / 0.7129 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.21e-05/0.7057, allocations: 60.16 kB / 0.7129 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 6.071e-06/0.7057, allocations: 4 kB / 0.7129 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.3858/1.091, allocations: 30.31 MB / 0.7425 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.662e-05/1.092, allocations: 238.4 kB / 0.7428 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007909/1.1, allocations: 6.69 MB / 0.7493 GB, free: 148 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007226/1.1, allocations: 65.7 kB / 0.7493 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002271/1.103, allocations: 4.414 MB / 0.7537 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001191/1.104, allocations: 1.059 MB / 0.7547 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002201/1.106, allocations: 1.796 MB / 0.7564 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.496e-05/1.106, allocations: 309 kB / 0.7567 GB, free: 140.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004091/1.11, allocations: 3.579 MB / 0.7602 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005703/1.116, allocations: 8.635 MB / 0.7687 GB, free: 125.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/1.127, allocations: 13.13 MB / 0.7815 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001275/1.127, allocations: 55.94 kB / 0.7815 GB, free: 110 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02222/1.15, allocations: 13.99 MB / 0.7952 GB, free: 96.02 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-05/1.15, allocations: 84 kB / 0.7953 GB, free: 95.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001294/1.15, allocations: 176 kB / 0.7955 GB, free: 95.77 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004666/1.154, allocations: 2.28 MB / 0.7977 GB, free: 93.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005669/1.16, allocations: 2.004 MB / 0.7996 GB, free: 91.47 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01373/1.174, allocations: 14.35 MB / 0.8136 GB, free: 76.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006041/1.18, allocations: 0.4991 MB / 0.8141 GB, free: 76.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008113/1.181, allocations: 0.5191 MB / 0.8146 GB, free: 75.84 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.003561/1.184, allocations: 2.986 MB / 0.8176 GB, free: 72.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007948/1.185, allocations: 0.5475 MB / 0.8181 GB, free: 72.29 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/1.195, allocations: 7.098 MB / 0.825 GB, free: 65.17 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.072e-05/1.195, allocations: 28 kB / 0.8251 GB, free: 65.14 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.299e-05/1.196, allocations: 12 kB / 0.8251 GB, free: 65.13 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-05/1.196, allocations: 11.95 kB / 0.8251 GB, free: 65.12 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02275/1.218, allocations: 14.71 MB / 0.8394 GB, free: 50.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.238e-05/1.218, allocations: 4 kB / 0.8394 GB, free: 50.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002148/1.221, allocations: 459.3 kB / 0.8399 GB, free: 49.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00475/1.225, allocations: 2.038 MB / 0.8419 GB, free: 47.87 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004727/1.226, allocations: 51.98 kB / 0.8419 GB, free: 47.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0147/1.241, allocations: 13.72 MB / 0.8553 GB, free: 33.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/1.241, allocations: 4 kB / 0.8553 GB, free: 33.84 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01452/1.255, allocations: 11.24 MB / 0.8663 GB, free: 22.44 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/1.257, allocations: 0.6264 MB / 0.8669 GB, free: 21.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001757/1.259, allocations: 53.92 kB / 0.867 GB, free: 21.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003122/1.262, allocations: 195 kB / 0.8671 GB, free: 21.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006129/1.263, allocations: 185.5 kB / 0.8673 GB, free: 21.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000204/1.263, allocations: 71.98 kB / 0.8674 GB, free: 21.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005667/1.269, allocations: 4.284 MB / 0.8716 GB, free: 17.02 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3e-07/1.269, allocations: 3.938 kB / 0.8716 GB, free: 17.02 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007661/1.276, allocations: 1.577 MB / 0.8731 GB, free: 15.45 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.0006146/1.277, allocations: 196 kB / 0.8733 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01146/1.288, allocations: 8.699 MB / 0.8818 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.288, allocations: 0 / 0.8818 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005141/1.294, allocations: 3.419 MB / 0.8851 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005903/1.3, allocations: 0.7175 MB / 0.8858 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02851/1.328, allocations: 14.79 MB / 0.9003 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007677/1.336, allocations: 4.534 MB / 0.9047 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00731/1.343, allocations: 2.767 MB / 0.9074 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001894/1.345, allocations: 387.4 kB / 0.9078 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of SimCode: time 1.072e-06/1.345, allocations: 0 / 0.9078 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of Templates: time 0.4321/1.777, allocations: 62.1 MB / 0.9684 GB, free: 201.7 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