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.001037/0.001037, allocations: 95.31 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 200.3 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.7 MB / 247.5 MB, free: 9.453 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1942/0.1942, allocations: 46.18 MB / 345.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002537/0.0002537, allocations: 8.375 kB / 420.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1073, allocations: 63.57 MB / 483.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.2779/0.3852, allocations: 79.49 MB / 0.55 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0381/0.4233, allocations: 15.59 MB / 0.5652 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01535/0.4387, allocations: 356.1 kB / 0.5656 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002337/0.4411, allocations: 0.5817 MB / 0.5661 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006668/0.4478, allocations: 2.35 MB / 0.5684 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002089/0.4499, allocations: 0.8787 MB / 0.5693 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01226/0.4622, allocations: 9.995 MB / 0.5791 GB, free: 5.129 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01132/0.4735, allocations: 8.055 MB / 0.5869 GB, free: 12.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003555/0.4771, allocations: 1.727 MB / 0.5886 GB, free: 11.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004627/0.4818, allocations: 2.951 MB / 0.5915 GB, free: 8.27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000958/0.4828, allocations: 208 kB / 0.5917 GB, free: 8.066 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002633/0.4854, allocations: 1.151 MB / 0.5928 GB, free: 6.914 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00332/0.4888, allocations: 2.641 MB / 0.5954 GB, free: 4.266 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004129/0.4929, allocations: 2.943 MB / 0.5983 GB, free: 1.297 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009005/0.5019, allocations: 7.965 MB / 0.606 GB, free: 9.309 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.502, allocations: 3.984 kB / 0.6061 GB, free: 9.305 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.502, allocations: 0 / 0.6061 GB, free: 9.305 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003389/0.5023, allocations: 4 kB / 0.6061 GB, free: 9.301 MB / 446.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.0141/0.5165, allocations: 6.075 MB / 0.612 GB, free: 3.148 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.5165, allocations: 12.88 kB / 0.612 GB, free: 3.137 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01291/0.5294, allocations: 2.777 MB / 0.6147 GB, free: 356 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0136/0.5431, allocations: 4.179 MB / 0.6188 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005061/0.5436, allocations: 361.7 kB / 0.6191 GB, free: 11.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002053/0.5457, allocations: 491.5 kB / 0.6196 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04001/0.5857, allocations: 14.26 MB / 0.6335 GB, free: 11.96 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003527/0.5862, allocations: 71.39 kB / 0.6336 GB, free: 11.89 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001778/0.588, allocations: 227.8 kB / 0.6338 GB, free: 11.67 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006025/0.594, allocations: 2.703 MB / 0.6365 GB, free: 8.965 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02427/0.6183, allocations: 12.06 MB / 0.6482 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07303/0.6914, allocations: 57.59 MB / 0.7045 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2412/0.9326, allocations: 6.282 MB / 0.7106 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005106/0.9378, allocations: 3.711 MB / 0.7142 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01478/0.9526, allocations: 8.532 MB / 0.7226 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.726e-05/0.9527, allocations: 61.34 kB / 0.7226 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 7.364e-06/0.9527, allocations: 0 / 0.7226 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07012/1.023, allocations: 30.29 MB / 0.7522 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.956e-05/1.023, allocations: 235.6 kB / 0.7524 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007684/1.031, allocations: 6.682 MB / 0.759 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005845/1.031, allocations: 67.11 kB / 0.759 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00206/1.033, allocations: 4.417 MB / 0.7633 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001043/1.034, allocations: 1.063 MB / 0.7644 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008245/1.035, allocations: 0.759 MB / 0.7651 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.841e-05/1.035, allocations: 305.1 kB / 0.7654 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004127/1.039, allocations: 3.57 MB / 0.7689 GB, free: 141 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006009/1.045, allocations: 8.638 MB / 0.7773 GB, free: 130 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/1.057, allocations: 13.14 MB / 0.7902 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001242/1.057, allocations: 52 kB / 0.7902 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02206/1.079, allocations: 14 MB / 0.8039 GB, free: 100.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000104/1.079, allocations: 85.41 kB / 0.804 GB, free: 100.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001938/1.079, allocations: 180 kB / 0.8041 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005355/1.085, allocations: 2.276 MB / 0.8064 GB, free: 97.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006177/1.091, allocations: 2.004 MB / 0.8083 GB, free: 95.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01414/1.105, allocations: 13.42 MB / 0.8214 GB, free: 82.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006929/1.112, allocations: 0.5031 MB / 0.8219 GB, free: 81.61 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001413/1.114, allocations: 0.513 MB / 0.8224 GB, free: 81.1 MB / 0.5294 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.004946/1.119, allocations: 2.997 MB / 0.8253 GB, free: 78.09 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/1.12, allocations: 0.5514 MB / 0.8259 GB, free: 77.54 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01141/1.131, allocations: 7.079 MB / 0.8328 GB, free: 70.44 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.097e-05/1.131, allocations: 28 kB / 0.8328 GB, free: 70.41 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.272e-05/1.131, allocations: 15.98 kB / 0.8328 GB, free: 70.39 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-05/1.131, allocations: 11.95 kB / 0.8328 GB, free: 70.38 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02424/1.155, allocations: 14.91 MB / 0.8474 GB, free: 55.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-05/1.156, allocations: 4.875 kB / 0.8474 GB, free: 55.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002203/1.158, allocations: 455.3 kB / 0.8478 GB, free: 54.96 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004956/1.163, allocations: 2.038 MB / 0.8498 GB, free: 52.92 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004862/1.163, allocations: 52 kB / 0.8499 GB, free: 52.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/1.177, allocations: 12.69 MB / 0.8623 GB, free: 39.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/1.177, allocations: 11.88 kB / 0.8623 GB, free: 39.91 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01504/1.192, allocations: 11.22 MB / 0.8732 GB, free: 28.55 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/1.194, allocations: 0.6383 MB / 0.8739 GB, free: 27.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/1.195, allocations: 52 kB / 0.8739 GB, free: 27.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002585/1.198, allocations: 200.8 kB / 0.8741 GB, free: 27.64 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005528/1.198, allocations: 173.6 kB / 0.8743 GB, free: 27.47 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002033/1.198, allocations: 75.98 kB / 0.8743 GB, free: 27.39 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005817/1.204, allocations: 4.288 MB / 0.8785 GB, free: 23.12 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.61e-07/1.204, allocations: 0 / 0.8785 GB, free: 23.12 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007265/1.212, allocations: 1.578 MB / 0.8801 GB, free: 21.54 MB / 0.5294 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.0007333/1.212, allocations: 198 kB / 0.8803 GB, free: 21.35 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01147/1.224, allocations: 8.662 MB / 0.8887 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/1.224, allocations: 0.75 kB / 0.8887 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00515/1.229, allocations: 3.405 MB / 0.892 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008275/1.237, allocations: 0.6943 MB / 0.8927 GB, free: 8.574 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2534/1.491, allocations: 18.4 MB / 0.9107 GB, free: 173.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006886/1.498, allocations: 4.515 MB / 0.9151 GB, free: 172.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002044/1.5, allocations: 444 kB / 0.9155 GB, free: 172.2 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/1.5, allocations: 0 / 0.9155 GB, free: 172.2 MB / 0.545 GB Notification: Performance of Templates: time 0.1602/1.66, allocations: 141.2 MB / 1.053 GB, free: 54.12 MB / 0.545 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