Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 200.9 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007415/0.0007416, allocations: 93.45 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1787/0.1787, allocations: 44.84 MB / 392 MB, free: 9.332 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002338/0.0002339, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09886, allocations: 62.96 MB / 0.5153 GB, free: 2.773 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.2554/0.3543, allocations: 80.97 MB / 0.5944 GB, free: 12.52 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03791/0.3923, allocations: 16.38 MB / 0.6104 GB, free: 12.09 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01379/0.4061, allocations: 387.1 kB / 0.6108 GB, free: 11.71 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01145/0.4176, allocations: 4.281 MB / 0.6149 GB, free: 7.41 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02822/0.4458, allocations: 12.39 MB / 0.627 GB, free: 10.98 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004413/0.4502, allocations: 0.8621 MB / 0.6279 GB, free: 10.11 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.06881/0.5191, allocations: 63.14 MB / 0.6895 GB, free: 10.89 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.011/0.5301, allocations: 7.29 MB / 0.6967 GB, free: 3.523 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003477/0.5336, allocations: 1.919 MB / 0.6985 GB, free: 1.598 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004111/0.5378, allocations: 2.963 MB / 0.7014 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001101/0.5389, allocations: 216 kB / 0.7016 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002725/0.5416, allocations: 0.9831 MB / 0.7026 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.003511/0.5451, allocations: 2.661 MB / 0.7052 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002242/0.5474, allocations: 1.252 MB / 0.7064 GB, free: 9.5 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.008754/0.5562, allocations: 8.171 MB / 0.7144 GB, free: 1.309 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.5562, allocations: 3.938 kB / 0.7144 GB, free: 1.305 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5562, allocations: 0 / 0.7144 GB, free: 1.305 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002969/0.5565, allocations: 0 / 0.7144 GB, free: 1.305 MB / 0.5105 GB 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.2216/0.7781, allocations: 6.298 MB / 0.7205 GB, free: 175.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.7781, allocations: 8.156 kB / 0.7206 GB, free: 175.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01367/0.7918, allocations: 2.828 MB / 0.7233 GB, free: 174.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.8019, allocations: 4.152 MB / 0.7274 GB, free: 172.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003212/0.8023, allocations: 362.3 kB / 0.7277 GB, free: 172.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001238/0.8035, allocations: 492.5 kB / 0.7282 GB, free: 172.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02436/0.8279, allocations: 14.61 MB / 0.7425 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001582/0.8281, allocations: 63 kB / 0.7425 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005309/0.8286, allocations: 232 kB / 0.7427 GB, free: 164.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003873/0.8325, allocations: 2.833 MB / 0.7455 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02027/0.8528, allocations: 12.31 MB / 0.7575 GB, free: 150.2 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05506/0.9079, allocations: 58.42 MB / 0.8146 GB, free: 90.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01246/0.9204, allocations: 6.274 MB / 0.8207 GB, free: 84.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003566/0.924, allocations: 3.699 MB / 0.8243 GB, free: 80.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01139/0.9354, allocations: 8.533 MB / 0.8327 GB, free: 71.97 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.9355, allocations: 72.14 kB / 0.8327 GB, free: 71.89 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=236): time 5.45e-06/0.9355, allocations: 0 / 0.8327 GB, free: 71.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=278): time 0.06287/0.9984, allocations: 30.4 MB / 0.8624 GB, free: 41.28 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.9985, allocations: 239.5 kB / 0.8626 GB, free: 41 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006922/1.005, allocations: 6.711 MB / 0.8692 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005511/1.006, allocations: 65.7 kB / 0.8693 GB, free: 34.22 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002002/1.008, allocations: 4.498 MB / 0.8736 GB, free: 29.73 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009382/1.009, allocations: 1.063 MB / 0.8747 GB, free: 28.68 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003303/1.009, allocations: 176 kB / 0.8749 GB, free: 28.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002911/1.01, allocations: 0.6818 MB / 0.8755 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003933/1.014, allocations: 3.55 MB / 0.879 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005576/1.019, allocations: 8.646 MB / 0.8874 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005579/1.025, allocations: 5.397 MB / 0.8927 GB, free: 7.691 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.555e-05/1.025, allocations: 52 kB / 0.8928 GB, free: 7.641 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02022/1.045, allocations: 13.99 MB / 0.9064 GB, free: 9.625 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/1.045, allocations: 80 kB / 0.9065 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001918/1.045, allocations: 183.8 kB / 0.9067 GB, free: 9.371 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005427/1.051, allocations: 2.311 MB / 0.9089 GB, free: 7.055 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006216/1.057, allocations: 2.012 MB / 0.9109 GB, free: 5.039 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2434/1.3, allocations: 13.4 MB / 0.924 GB, free: 159.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006975/1.307, allocations: 0.5095 MB / 0.9245 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001536/1.309, allocations: 0.5217 MB / 0.925 GB, free: 159.7 MB / 0.5261 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 (1064): * Single equations (assignments): 1057 * 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.005624/1.315, allocations: 3.049 MB / 0.928 GB, free: 158.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001165/1.316, allocations: 0.5544 MB / 0.9285 GB, free: 158.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01303/1.329, allocations: 7.074 MB / 0.9354 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.117e-05/1.329, allocations: 32.58 kB / 0.9354 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.484e-05/1.329, allocations: 10.95 kB / 0.9355 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.156e-05/1.329, allocations: 12.17 kB / 0.9355 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02369/1.353, allocations: 14.99 MB / 0.9501 GB, free: 151.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.447e-05/1.353, allocations: 4.797 kB / 0.9501 GB, free: 151.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002123/1.355, allocations: 455.9 kB / 0.9505 GB, free: 151.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00476/1.36, allocations: 2.036 MB / 0.9525 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004467/1.36, allocations: 53.48 kB / 0.9526 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01391/1.374, allocations: 12.67 MB / 0.965 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/1.374, allocations: 6.969 kB / 0.965 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01388/1.388, allocations: 11.2 MB / 0.9759 GB, free: 132.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/1.39, allocations: 0.6409 MB / 0.9765 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006989/1.39, allocations: 59.94 kB / 0.9766 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002227/1.393, allocations: 197 kB / 0.9768 GB, free: 132 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003807/1.393, allocations: 177 kB / 0.9769 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/1.393, allocations: 68 kB / 0.977 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004819/1.398, allocations: 4.286 MB / 0.9812 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.61e-07/1.398, allocations: 3.594 kB / 0.9812 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006168/1.404, allocations: 1.61 MB / 0.9828 GB, free: 125.9 MB / 0.5261 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.0004757/1.405, allocations: 194.5 kB / 0.9829 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01047/1.415, allocations: 8.65 MB / 0.9914 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.415, allocations: 0 / 0.9914 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004424/1.42, allocations: 3.395 MB / 0.9947 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003921/1.424, allocations: 0.7167 MB / 0.9954 GB, free: 113 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02038/1.444, allocations: 18.01 MB / 1.013 GB, free: 95.11 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003671/1.448, allocations: 4.6 MB / 1.017 GB, free: 90.46 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001693/1.449, allocations: 443.4 kB / 1.018 GB, free: 90.04 MB / 0.5261 GB Notification: Performance of SimCode: time 1.042e-06/1.449, allocations: 0 / 1.018 GB, free: 90.04 MB / 0.5261 GB Notification: Performance of Templates: time 0.3518/1.801, allocations: 144.2 MB / 1.159 GB, free: 159 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches