Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008804/0.0008806, allocations: 102.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008911/0.0008911, allocations: 188.1 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.2 MB / 241.8 MB, free: 364 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2015/0.2015, allocations: 44.24 MB / 337.1 MB, free: 2.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000318/0.0003181, allocations: 10.03 kB / 409.5 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1354, allocations: 61.91 MB / 471.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3543/0.4897, allocations: 76.41 MB / 0.535 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0455/0.5352, allocations: 17.15 MB / 0.5518 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02131/0.5566, allocations: 385.1 kB / 0.5521 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01645/0.5731, allocations: 3.86 MB / 0.5559 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04356/0.6167, allocations: 10.92 MB / 0.5666 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00697/0.6237, allocations: 0.8581 MB / 0.5674 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.07115/0.6949, allocations: 48.99 MB / 0.6152 GB, free: 372 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01192/0.7068, allocations: 7.253 MB / 0.6223 GB, free: 9.02 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003857/0.7107, allocations: 1.538 MB / 0.6238 GB, free: 7.477 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005038/0.7158, allocations: 2.036 MB / 0.6258 GB, free: 5.434 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001948/0.7177, allocations: 208 kB / 0.626 GB, free: 5.23 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003466/0.7212, allocations: 0.9871 MB / 0.627 GB, free: 4.242 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003632/0.7249, allocations: 2.47 MB / 0.6294 GB, free: 1.766 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002632/0.7275, allocations: 1.252 MB / 0.6306 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.7376, allocations: 8.288 MB / 0.6387 GB, free: 8.195 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.7377, allocations: 0 / 0.6387 GB, free: 8.195 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.7377, allocations: 4 kB / 0.6387 GB, free: 8.191 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004266/0.7381, allocations: 0 / 0.6387 GB, free: 8.191 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01877/0.7569, allocations: 6.653 MB / 0.6452 GB, free: 1.453 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.757, allocations: 12.03 kB / 0.6452 GB, free: 1.441 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04473/0.8017, allocations: 8.206 MB / 0.6532 GB, free: 9.215 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.8126, allocations: 4.348 MB / 0.6575 GB, free: 4.785 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002995/0.8129, allocations: 365.3 kB / 0.6578 GB, free: 4.426 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001702/0.8147, allocations: 479.7 kB / 0.6583 GB, free: 3.957 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02731/0.842, allocations: 14.68 MB / 0.6726 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002171/0.8422, allocations: 71.39 kB / 0.6727 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007649/0.843, allocations: 231.8 kB / 0.6729 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004999/0.848, allocations: 2.828 MB / 0.6757 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0257/0.8737, allocations: 12.28 MB / 0.6877 GB, free: 4.824 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3156/1.189, allocations: 58.09 MB / 0.7444 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01531/1.205, allocations: 6.369 MB / 0.7506 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/1.217, allocations: 8.395 MB / 0.7588 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/1.217, allocations: 67.28 kB / 0.7589 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 3.767e-06/1.217, allocations: 0 / 0.7589 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.06355/1.281, allocations: 29.99 MB / 0.7882 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/1.281, allocations: 243.5 kB / 0.7884 GB, free: 124.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007442/1.289, allocations: 6.965 MB / 0.7952 GB, free: 117.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005171/1.289, allocations: 69.7 kB / 0.7953 GB, free: 117.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002094/1.291, allocations: 4.551 MB / 0.7997 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008698/1.292, allocations: 1.06 MB / 0.8007 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003085/1.292, allocations: 164 kB / 0.8009 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002972/1.293, allocations: 0.6691 MB / 0.8016 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003773/1.296, allocations: 3.335 MB / 0.8048 GB, free: 107.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005348/1.302, allocations: 8.377 MB / 0.813 GB, free: 96.77 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005896/1.308, allocations: 5.171 MB / 0.818 GB, free: 91.59 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.23e-05/1.308, allocations: 48 kB / 0.8181 GB, free: 91.55 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.02235/1.33, allocations: 13 MB / 0.8308 GB, free: 78.54 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001711/1.33, allocations: 84 kB / 0.8309 GB, free: 78.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002551/1.331, allocations: 180.9 kB / 0.831 GB, free: 78.28 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004235/1.335, allocations: 1.801 MB / 0.8328 GB, free: 76.47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007087/1.342, allocations: 1.957 MB / 0.8347 GB, free: 74.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01348/1.355, allocations: 12.31 MB / 0.8467 GB, free: 61.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007878/1.363, allocations: 499.3 kB / 0.8472 GB, free: 61.44 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001458/1.365, allocations: 0.5078 MB / 0.8477 GB, free: 60.93 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.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 (1026): * Single equations (assignments): 1019 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005612/1.371, allocations: 3.047 MB / 0.8507 GB, free: 57.88 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001307/1.372, allocations: 0.5668 MB / 0.8512 GB, free: 57.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009809/1.382, allocations: 6.331 MB / 0.8574 GB, free: 50.95 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.906e-05/1.382, allocations: 29.09 kB / 0.8574 GB, free: 50.93 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.362e-05/1.382, allocations: 14.06 kB / 0.8575 GB, free: 50.91 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.55e-05/1.382, allocations: 15.94 kB / 0.8575 GB, free: 50.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02715/1.409, allocations: 14.28 MB / 0.8714 GB, free: 36.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.122e-05/1.409, allocations: 10.31 kB / 0.8714 GB, free: 36.56 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002264/1.411, allocations: 459.7 kB / 0.8719 GB, free: 36.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003702/1.415, allocations: 1.53 MB / 0.8734 GB, free: 34.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004759/1.416, allocations: 48.86 kB / 0.8734 GB, free: 34.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01273/1.428, allocations: 11.53 MB / 0.8847 GB, free: 22.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/1.428, allocations: 7.938 kB / 0.8847 GB, free: 22.74 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01438/1.443, allocations: 11.12 MB / 0.8955 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/1.445, allocations: 0.6498 MB / 0.8962 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001657/1.446, allocations: 51.98 kB / 0.8962 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003304/1.45, allocations: 179.8 kB / 0.8964 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000792/1.451, allocations: 170.4 kB / 0.8965 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002079/1.451, allocations: 80 kB / 0.8966 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007336/1.458, allocations: 4.491 MB / 0.901 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.81e-07/1.458, allocations: 0 / 0.901 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009023/1.467, allocations: 1.573 MB / 0.9025 GB, free: 4.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008238/1.468, allocations: 212.4 kB / 0.9027 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2556/1.724, allocations: 8.22 MB / 0.9108 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/1.724, allocations: 1.969 kB / 0.9108 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006458/1.73, allocations: 3.228 MB / 0.9139 GB, free: 178 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004644/1.735, allocations: 0.6994 MB / 0.9146 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03288/1.768, allocations: 17.08 MB / 0.9313 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007011/1.775, allocations: 4.751 MB / 0.9359 GB, free: 168 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008019/1.783, allocations: 2.8 MB / 0.9387 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002124/1.785, allocations: 390 kB / 0.939 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of SimCode: time 7.71e-07/1.785, allocations: 4 kB / 0.939 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1003/1.885, allocations: 61.67 MB / 0.9993 GB, free: 109.4 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches