Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.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.FrameTorques2,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.FrameTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,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.FrameTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001187/0.001187, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001113/0.001113, allocations: 97.91 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4027/0.4027, allocations: 44.82 MB / 392.7 MB, free: 34.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.91 kB / 465.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3374, allocations: 62.02 MB / 0.5152 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.09828/0.4358, allocations: 123.2 MB / 0.6355 GB, free: 13.95 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.05646/0.4923, allocations: 23.18 MB / 0.6581 GB, free: 6.691 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03197/0.5243, allocations: 0.5261 MB / 0.6586 GB, free: 6.164 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01113/0.5355, allocations: 6.308 MB / 0.6648 GB, free: 15.84 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007808/0.5433, allocations: 2.822 MB / 0.6675 GB, free: 13.01 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003766/0.5471, allocations: 1.49 MB / 0.669 GB, free: 11.52 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.3989/0.946, allocations: 14.51 MB / 0.6832 GB, free: 5.238 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01372/0.9598, allocations: 7.947 MB / 0.6909 GB, free: 4.262 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009175/0.969, allocations: 2.832 MB / 0.6937 GB, free: 4.262 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01099/0.9801, allocations: 4.601 MB / 0.6982 GB, free: 4.25 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003641/0.9838, allocations: 499.8 kB / 0.6987 GB, free: 4.25 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007072/0.9909, allocations: 1.58 MB / 0.7002 GB, free: 4.246 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008345/0.9992, allocations: 3.788 MB / 0.7039 GB, free: 4.133 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01201/1.011, allocations: 4.146 MB / 0.708 GB, free: 2.684 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02221/1.034, allocations: 13.11 MB / 0.7208 GB, free: 0 / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.779e-06/1.034, allocations: 192 / 0.7208 GB, free: 0 / 490.7 MB Notification: Performance of FrontEnd: time 2.855e-06/1.034, allocations: 64 / 0.7208 GB, free: 0 / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006723/1.034, allocations: 0 / 0.7208 GB, free: 0 / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.03519/1.069, allocations: 9.304 MB / 0.7298 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/1.07, allocations: 11.47 kB / 0.7299 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02052/1.09, allocations: 3.601 MB / 0.7334 GB, free: 9.539 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01702/1.107, allocations: 5.996 MB / 0.7392 GB, free: 7.543 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004478/1.108, allocations: 452 kB / 0.7397 GB, free: 7.527 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003494/1.111, allocations: 0.6094 MB / 0.7403 GB, free: 7.512 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0424/1.154, allocations: 17.87 MB / 0.7577 GB, free: 9.062 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006058/1.154, allocations: 81.16 kB / 0.7578 GB, free: 9.012 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003582/1.158, allocations: 280.3 kB / 0.7581 GB, free: 8.789 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006647/1.164, allocations: 3.143 MB / 0.7611 GB, free: 5.688 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03532/1.2, allocations: 14.96 MB / 0.7757 GB, free: 6.98 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09427/1.294, allocations: 66.44 MB / 0.8406 GB, free: 3.816 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01844/1.313, allocations: 6.606 MB / 0.8471 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005277/1.318, allocations: 3.88 MB / 0.8509 GB, free: 9.16 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007029/1.319, allocations: 0.6555 MB / 0.8515 GB, free: 8.41 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/1.319, allocations: 60.22 kB / 0.8516 GB, free: 8.344 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=231): time 4.649e-06/1.319, allocations: 4 kB / 0.8516 GB, free: 8.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=255): time 0.08642/1.405, allocations: 31.58 MB / 0.8824 GB, free: 8.582 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/1.405, allocations: 282.1 kB / 0.8827 GB, free: 8.25 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01301/1.418, allocations: 7.413 MB / 0.8899 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0008551/1.419, allocations: 61.7 kB / 0.89 GB, free: 0.7891 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.005069/1.424, allocations: 5.276 MB / 0.8951 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.002039/1.426, allocations: 0.9923 MB / 0.8961 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003942/1.43, allocations: 1.878 MB / 0.8979 GB, free: 8.691 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.431, allocations: 301.1 kB / 0.8982 GB, free: 8.395 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005573/1.436, allocations: 3.438 MB / 0.9016 GB, free: 4.949 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2837/1.72, allocations: 8.711 MB / 0.9101 GB, free: 273.1 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01292/1.733, allocations: 12.96 MB / 0.9227 GB, free: 265.5 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002719/1.733, allocations: 53.34 kB / 0.9228 GB, free: 265.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=1178) (initialization): time 0.02647/1.76, allocations: 13.94 MB / 0.9364 GB, free: 261 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001826/1.76, allocations: 87.89 kB / 0.9365 GB, free: 261 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003055/1.76, allocations: 188 kB / 0.9367 GB, free: 261 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007076/1.767, allocations: 2.305 MB / 0.9389 GB, free: 260.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007745/1.775, allocations: 2.048 MB / 0.9409 GB, free: 260.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01755/1.793, allocations: 15.59 MB / 0.9561 GB, free: 251.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007365/1.8, allocations: 0.5021 MB / 0.9566 GB, free: 251.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001772/1.802, allocations: 0.5215 MB / 0.9571 GB, free: 251.1 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 839 * Number of states: 0 () * Number of discrete variables: 74 (frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 (1098): * Single equations (assignments): 1091 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,14,100.0%), (1,14,100.0%), (1,14,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00822/1.81, allocations: 3.525 MB / 0.9606 GB, free: 249.6 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001325/1.811, allocations: 0.6163 MB / 0.9612 GB, free: 249.6 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/1.824, allocations: 6.455 MB / 0.9675 GB, free: 247.4 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.63e-05/1.824, allocations: 30.25 kB / 0.9675 GB, free: 247.4 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.967e-05/1.824, allocations: 11.59 kB / 0.9675 GB, free: 247.4 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.006e-05/1.824, allocations: 15.52 kB / 0.9675 GB, free: 247.4 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03198/1.856, allocations: 14.55 MB / 0.9817 GB, free: 242.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.959e-05/1.856, allocations: 7.109 kB / 0.9818 GB, free: 242.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002197/1.858, allocations: 414.5 kB / 0.9821 GB, free: 242.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00558/1.864, allocations: 1.988 MB / 0.9841 GB, free: 241.1 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004966/1.864, allocations: 40 kB / 0.9841 GB, free: 241 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01384/1.878, allocations: 14.46 MB / 0.9983 GB, free: 227.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.878, allocations: 4.141 kB / 0.9983 GB, free: 227.3 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1073/1.985, allocations: 68.48 MB / 1.065 GB, free: 158.3 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/1.987, allocations: 0.6882 MB / 1.066 GB, free: 157.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001268/1.988, allocations: 46.03 kB / 1.066 GB, free: 157.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002955/1.991, allocations: 175.7 kB / 1.066 GB, free: 157.3 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005586/1.992, allocations: 153.7 kB / 1.066 GB, free: 157.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/1.992, allocations: 67.94 kB / 1.066 GB, free: 157.1 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.007489/2, allocations: 4.732 MB / 1.071 GB, free: 152.4 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.71e-07/2, allocations: 0 / 1.071 GB, free: 152.4 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.01172/2.011, allocations: 2.439 MB / 1.073 GB, free: 150 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (195): * Single equations (assignments): 188 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,11,100.0%), (1,11,100.0%), (1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007887/2.012, allocations: 181.7 kB / 1.073 GB, free: 149.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.01154/2.024, allocations: 8.509 MB / 1.082 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/2.024, allocations: 0.875 kB / 1.082 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.003342/2.027, allocations: 2.945 MB / 1.085 GB, free: 138.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005398/2.033, allocations: 0.8836 MB / 1.085 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03508/2.068, allocations: 22.64 MB / 1.108 GB, free: 114.7 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008151/2.076, allocations: 5.514 MB / 1.113 GB, free: 109.2 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.007552/2.084, allocations: 2.748 MB / 1.116 GB, free: 106.4 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002055/2.086, allocations: 415.4 kB / 1.116 GB, free: 106 MB / 0.6511 GB Notification: Performance of SimCode: time 8.52e-07/2.086, allocations: 0 / 1.116 GB, free: 106 MB / 0.6511 GB Notification: Performance of Templates: time 0.1273/2.213, allocations: 87.24 MB / 1.201 GB, free: 19.03 MB / 0.6511 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches