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/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.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/ModelicaServices trunk/package.mo): time 0.001271/0.001271, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2198/0.2198, allocations: 46.13 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 80.12 kB / 417.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1294, allocations: 62.45 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.01763/0.1471, allocations: 17.83 MB / 497.9 MB, free: 3.312 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01157/0.1587, allocations: 5.637 MB / 0.4917 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004367/0.1631, allocations: 131.6 kB / 0.4919 GB, free: 13.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01135/0.1745, allocations: 6.266 MB / 0.498 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008651/0.1832, allocations: 2.894 MB / 0.5008 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004719/0.1879, allocations: 1.591 MB / 0.5024 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2868/0.4748, allocations: 9.858 MB / 0.512 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01264/0.4875, allocations: 8.001 MB / 0.5198 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007737/0.4952, allocations: 3.112 MB / 0.5228 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008929/0.5042, allocations: 4.217 MB / 0.527 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003418/0.5077, allocations: 0.6791 MB / 0.5276 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007043/0.5148, allocations: 1.695 MB / 0.5293 GB, free: 9.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007194/0.522, allocations: 3.818 MB / 0.533 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009072/0.5311, allocations: 4.202 MB / 0.5371 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01476/0.5459, allocations: 12.65 MB / 0.5495 GB, free: 11.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.5459, allocations: 0 / 0.5495 GB, free: 11.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5459, allocations: 0 / 0.5495 GB, free: 11.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005025/0.5465, allocations: 0 / 0.5495 GB, free: 11.2 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2491 * Number of variables: 2491 Notification: Performance of Generate backend data structure: time 0.02542/0.5719, allocations: 9.043 MB / 0.5583 GB, free: 2.223 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.572, allocations: 8.031 kB / 0.5583 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01817/0.5901, allocations: 3.495 MB / 0.5617 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01583/0.606, allocations: 5.905 MB / 0.5675 GB, free: 9.027 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005738/0.6067, allocations: 446.5 kB / 0.5679 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002954/0.6096, allocations: 0.5901 MB / 0.5685 GB, free: 8.098 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03698/0.6466, allocations: 17.12 MB / 0.5852 GB, free: 6.207 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003229/0.647, allocations: 84.67 kB / 0.5853 GB, free: 6.152 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001424/0.6484, allocations: 273.2 kB / 0.5855 GB, free: 5.934 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005007/0.6534, allocations: 2.891 MB / 0.5884 GB, free: 3.082 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03115/0.6846, allocations: 14.34 MB / 0.6024 GB, free: 5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09596/0.7806, allocations: 64.72 MB / 0.6656 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0191/0.7998, allocations: 6.629 MB / 0.672 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005488/0.8053, allocations: 3.886 MB / 0.6758 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008173/0.8062, allocations: 0.6502 MB / 0.6765 GB, free: 8.121 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.304e-05/0.8063, allocations: 68.2 kB / 0.6765 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=231): time 5.721e-06/0.8063, allocations: 3.938 kB / 0.6765 GB, free: 8.043 MB / 0.5137 GB Notification: Performance of matching and sorting (n=255): time 0.09747/0.9038, allocations: 31.3 MB / 0.7071 GB, free: 8.508 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002354/0.904, allocations: 291 kB / 0.7074 GB, free: 8.164 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01876/0.9228, allocations: 7.311 MB / 0.7145 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009513/0.9238, allocations: 65.7 kB / 0.7146 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.4305/1.354, allocations: 5.08 MB / 0.7196 GB, free: 185.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001278/1.356, allocations: 1.001 MB / 0.7205 GB, free: 185.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002828/1.358, allocations: 1.843 MB / 0.7223 GB, free: 184.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.142e-05/1.359, allocations: 306.9 kB / 0.7226 GB, free: 184.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005192/1.364, allocations: 3.422 MB / 0.726 GB, free: 183 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008457/1.372, allocations: 8.62 MB / 0.7344 GB, free: 175 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01317/1.385, allocations: 12.84 MB / 0.7469 GB, free: 164.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002964/1.386, allocations: 52.75 kB / 0.747 GB, free: 164.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.0262/1.412, allocations: 13.85 MB / 0.7605 GB, free: 159.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003571/1.412, allocations: 81.88 kB / 0.7606 GB, free: 159.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004785/1.413, allocations: 182.4 kB / 0.7607 GB, free: 159.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00629/1.419, allocations: 2.319 MB / 0.763 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006559/1.426, allocations: 2.025 MB / 0.765 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01561/1.441, allocations: 16.71 MB / 0.7813 GB, free: 144.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007537/1.449, allocations: 0.4955 MB / 0.7818 GB, free: 144.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001714/1.451, allocations: 0.5156 MB / 0.7823 GB, free: 143.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 827 * Number of states: 0 () * Number of discrete variables: 74 (frameTorque4.arrow.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque3.arrow.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque2.arrow.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.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 (1086): * Single equations (assignments): 1079 * 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.006585/1.457, allocations: 3.422 MB / 0.7856 GB, free: 140.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001383/1.459, allocations: 0.6055 MB / 0.7862 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/1.469, allocations: 6.449 MB / 0.7925 GB, free: 133.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.136e-05/1.469, allocations: 34.12 kB / 0.7926 GB, free: 133.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.281e-05/1.469, allocations: 8 kB / 0.7926 GB, free: 133.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-05/1.469, allocations: 15.95 kB / 0.7926 GB, free: 133.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02323/1.492, allocations: 14.35 MB / 0.8066 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/1.492, allocations: 0 / 0.8066 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001862/1.494, allocations: 407.4 kB / 0.807 GB, free: 118.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004863/1.499, allocations: 2 MB / 0.8089 GB, free: 116.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005069/1.5, allocations: 45.8 kB / 0.809 GB, free: 116.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0137/1.513, allocations: 15.65 MB / 0.8243 GB, free: 100.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/1.513, allocations: 0 / 0.8243 GB, free: 100.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0129/1.526, allocations: 10.14 MB / 0.8342 GB, free: 89.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/1.528, allocations: 0.6766 MB / 0.8348 GB, free: 89.12 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001791/1.53, allocations: 36 kB / 0.8349 GB, free: 89.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003979/1.534, allocations: 183.7 kB / 0.835 GB, free: 88.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004583/1.534, allocations: 153.7 kB / 0.8352 GB, free: 88.76 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001816/1.535, allocations: 72.78 kB / 0.8352 GB, free: 88.69 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006674/1.541, allocations: 4.663 MB / 0.8398 GB, free: 84.05 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.01e-07/1.541, allocations: 0 / 0.8398 GB, free: 84.05 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008946/1.55, allocations: 1.727 MB / 0.8415 GB, free: 82.33 MB / 0.545 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.0008552/1.551, allocations: 183.1 kB / 0.8417 GB, free: 82.15 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01459/1.566, allocations: 9.721 MB / 0.8512 GB, free: 72.45 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.566, allocations: 4 kB / 0.8512 GB, free: 72.45 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003905/1.57, allocations: 2.932 MB / 0.854 GB, free: 69.47 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007312/1.577, allocations: 0.925 MB / 0.8549 GB, free: 68.56 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02588/1.603, allocations: 16.31 MB / 0.8709 GB, free: 52.22 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006912/1.61, allocations: 5.234 MB / 0.876 GB, free: 46.95 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00693/1.617, allocations: 2.677 MB / 0.8786 GB, free: 44.26 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001487/1.618, allocations: 399.4 kB / 0.879 GB, free: 43.87 MB / 0.545 GB Notification: Performance of SimCode: time 8.31e-07/1.618, allocations: 4 kB / 0.879 GB, free: 43.87 MB / 0.545 GB Notification: Performance of Templates: time 0.3677/1.986, allocations: 71.99 MB / 0.9493 GB, free: 153.3 MB / 0.545 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches