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.001979/0.00198, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002378/0.002378, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.481/2.481, allocations: 227.4 MB / 246.9 MB, free: 8.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4084/0.4084, allocations: 46.11 MB / 344.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002575/0.002575, allocations: 77.94 kB / 417.5 MB, free: 20.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2035, allocations: 62.45 MB / 479.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.5013/0.7049, allocations: 81.43 MB / 0.5482 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04731/0.7522, allocations: 15.65 MB / 0.5635 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01938/0.7717, allocations: 355.7 kB / 0.5638 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01315/0.7849, allocations: 5.004 MB / 0.5687 GB, free: 12.43 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009332/0.7943, allocations: 2.336 MB / 0.571 GB, free: 10.09 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003868/0.7982, allocations: 0.9947 MB / 0.572 GB, free: 9.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01756/0.8158, allocations: 9.991 MB / 0.5817 GB, free: 15.08 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008546/0.8244, allocations: 5.697 MB / 0.5873 GB, free: 9.324 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00441/0.8289, allocations: 2.126 MB / 0.5894 GB, free: 7.191 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005593/0.8345, allocations: 3.45 MB / 0.5927 GB, free: 3.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001745/0.8363, allocations: 368 kB / 0.5931 GB, free: 3.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003557/0.8399, allocations: 1.315 MB / 0.5944 GB, free: 2.055 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004353/0.8442, allocations: 2.879 MB / 0.5972 GB, free: 15.17 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006101/0.8504, allocations: 3.211 MB / 0.6003 GB, free: 11.94 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009605/0.86, allocations: 8.159 MB / 0.6083 GB, free: 3.762 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.8601, allocations: 0 / 0.6083 GB, free: 3.762 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.8601, allocations: 4 kB / 0.6083 GB, free: 3.758 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004308/0.8605, allocations: 0 / 0.6083 GB, free: 3.758 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.02016/0.8807, allocations: 7.393 MB / 0.6155 GB, free: 12.28 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.8808, allocations: 12.88 kB / 0.6155 GB, free: 12.27 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01279/0.8936, allocations: 2.703 MB / 0.6182 GB, free: 9.551 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.9038, allocations: 4.191 MB / 0.6223 GB, free: 5.277 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003594/0.9042, allocations: 353.8 kB / 0.6226 GB, free: 4.93 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002143/0.9064, allocations: 491.5 kB / 0.6231 GB, free: 4.449 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03031/0.9367, allocations: 14.25 MB / 0.637 GB, free: 5.184 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000305/0.937, allocations: 79.3 kB / 0.6371 GB, free: 5.105 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001676/0.9387, allocations: 223.8 kB / 0.6373 GB, free: 4.887 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005012/0.9438, allocations: 2.703 MB / 0.6399 GB, free: 2.18 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02495/0.9687, allocations: 12.03 MB / 0.6517 GB, free: 6.121 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08283/1.052, allocations: 57.56 MB / 0.7079 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01577/1.067, allocations: 6.273 MB / 0.714 GB, free: 4.652 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005232/1.073, allocations: 3.703 MB / 0.7176 GB, free: 0.9375 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.233/1.306, allocations: 8.527 MB / 0.7259 GB, free: 195 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.745e-05/1.306, allocations: 63.28 kB / 0.726 GB, free: 194.9 MB / 0.545 GB Notification: Performance of pre-optimization done (n=236): time 4.959e-06/1.306, allocations: 0 / 0.726 GB, free: 194.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=278): time 0.07574/1.382, allocations: 30.32 MB / 0.7556 GB, free: 183.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.505e-05/1.382, allocations: 238.3 kB / 0.7558 GB, free: 183.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00863/1.39, allocations: 6.686 MB / 0.7624 GB, free: 177.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000715/1.391, allocations: 68.67 kB / 0.7624 GB, free: 177 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002292/1.393, allocations: 4.416 MB / 0.7667 GB, free: 172.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001276/1.395, allocations: 1.063 MB / 0.7678 GB, free: 171.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002238/1.397, allocations: 1.788 MB / 0.7695 GB, free: 169.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.154e-05/1.397, allocations: 305.1 kB / 0.7698 GB, free: 169.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004248/1.401, allocations: 3.57 MB / 0.7733 GB, free: 165.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007955/1.409, allocations: 8.641 MB / 0.7817 GB, free: 154.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01263/1.422, allocations: 13.14 MB / 0.7946 GB, free: 139.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001605/1.422, allocations: 52 kB / 0.7946 GB, free: 139.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02307/1.445, allocations: 14 MB / 0.8083 GB, free: 125.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002089/1.445, allocations: 84 kB / 0.8084 GB, free: 125.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002345/1.446, allocations: 176 kB / 0.8085 GB, free: 125 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005211/1.451, allocations: 2.284 MB / 0.8108 GB, free: 122.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006143/1.457, allocations: 1.996 MB / 0.8127 GB, free: 120.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01424/1.471, allocations: 13.41 MB / 0.8258 GB, free: 107 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006658/1.478, allocations: 0.5001 MB / 0.8263 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001508/1.48, allocations: 0.5155 MB / 0.8268 GB, free: 106 MB / 0.545 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.005771/1.485, allocations: 2.988 MB / 0.8297 GB, free: 103 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001449/1.487, allocations: 0.5552 MB / 0.8303 GB, free: 102.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01214/1.499, allocations: 7.071 MB / 0.8372 GB, free: 95.34 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.184e-05/1.499, allocations: 28 kB / 0.8372 GB, free: 95.31 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.963e-05/1.499, allocations: 18.11 kB / 0.8372 GB, free: 95.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-05/1.499, allocations: 11.95 kB / 0.8372 GB, free: 95.29 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02619/1.525, allocations: 14.92 MB / 0.8518 GB, free: 80.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-05/1.525, allocations: 4 kB / 0.8518 GB, free: 80.31 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002192/1.528, allocations: 459.3 kB / 0.8522 GB, free: 79.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004889/1.533, allocations: 2.038 MB / 0.8542 GB, free: 77.82 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004888/1.533, allocations: 51.98 kB / 0.8543 GB, free: 77.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01378/1.547, allocations: 12.66 MB / 0.8667 GB, free: 64.84 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.547, allocations: 4 kB / 0.8667 GB, free: 64.84 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/1.562, allocations: 11.22 MB / 0.8776 GB, free: 53.46 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/1.564, allocations: 0.6285 MB / 0.8782 GB, free: 52.81 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001443/1.565, allocations: 51.98 kB / 0.8783 GB, free: 52.76 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00293/1.568, allocations: 191.7 kB / 0.8785 GB, free: 52.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006643/1.569, allocations: 185.8 kB / 0.8786 GB, free: 52.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000318/1.569, allocations: 68 kB / 0.8787 GB, free: 52.32 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006659/1.576, allocations: 4.28 MB / 0.8829 GB, free: 48.05 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.91e-07/1.576, allocations: 0 / 0.8829 GB, free: 48.05 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008223/1.584, allocations: 1.58 MB / 0.8844 GB, free: 46.48 MB / 0.545 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.0008261/1.585, allocations: 196.2 kB / 0.8846 GB, free: 46.29 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01156/1.597, allocations: 8.673 MB / 0.8931 GB, free: 37.62 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/1.597, allocations: 0 / 0.8931 GB, free: 37.62 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005192/1.602, allocations: 3.408 MB / 0.8964 GB, free: 34.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005846/1.608, allocations: 0.6888 MB / 0.8971 GB, free: 33.49 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02591/1.634, allocations: 18.26 MB / 0.9149 GB, free: 15.15 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2024/1.836, allocations: 4.512 MB / 0.9193 GB, free: 174.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001899/1.838, allocations: 439.3 kB / 0.9197 GB, free: 174.7 MB / 0.545 GB Notification: Performance of SimCode: time 7.31e-07/1.838, allocations: 3.375 kB / 0.9197 GB, free: 174.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1633/2.001, allocations: 142.4 MB / 1.059 GB, free: 60.79 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