Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009964/0.0009964, 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.001087/0.001087, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1995/0.1995, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 65.2 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09615/0.09757, allocations: 62.46 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01403/0.1116, allocations: 14.99 MB / 495.1 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008806/0.1205, allocations: 5.038 MB / 0.4884 GB, free: 1.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001942/0.1224, allocations: 119.7 kB / 0.4886 GB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009576/0.132, allocations: 5.982 MB / 0.4944 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005135/0.1372, allocations: 2.727 MB / 0.4971 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002601/0.1398, allocations: 1.579 MB / 0.4986 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1736/0.3134, allocations: 7.773 MB / 0.5062 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007231/0.3207, allocations: 7.398 MB / 0.5134 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003928/0.3246, allocations: 2.966 MB / 0.5163 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005413/0.3301, allocations: 3.78 MB / 0.52 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002074/0.3322, allocations: 0.5697 MB / 0.5206 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00329/0.3355, allocations: 1.385 MB / 0.5219 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002834/0.3383, allocations: 3.459 MB / 0.5253 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003168/0.3415, allocations: 3.85 MB / 0.5291 GB, free: 8.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007436/0.3489, allocations: 11.26 MB / 0.5401 GB, free: 2.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.349, allocations: 0 / 0.5401 GB, free: 2.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.349, allocations: 7.406 kB / 0.5401 GB, free: 2.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002626/0.3492, allocations: 0 / 0.5401 GB, free: 2.535 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2471 * Number of variables: 2471 Notification: Performance of Generate backend data structure: time 0.01376/0.363, allocations: 8.496 MB / 0.5484 GB, free: 12.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3631, allocations: 12.03 kB / 0.5484 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001577/0.3646, allocations: 1.168 MB / 0.5495 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009773/0.3744, allocations: 2.513 MB / 0.552 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01071/0.3852, allocations: 5.29 MB / 0.5571 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004339/0.3856, allocations: 433.7 kB / 0.5575 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002273/0.3879, allocations: 0.545 MB / 0.5581 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03107/0.419, allocations: 16.68 MB / 0.5744 GB, free: 1.551 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002394/0.4193, allocations: 72.44 kB / 0.5744 GB, free: 1.512 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001326/0.4206, allocations: 261 kB / 0.5747 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004168/0.4248, allocations: 2.932 MB / 0.5775 GB, free: 14.42 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02676/0.4516, allocations: 12.79 MB / 0.59 GB, free: 1.926 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07873/0.5303, allocations: 64.29 MB / 0.6528 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01638/0.5468, allocations: 5.374 MB / 0.6581 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003402/0.5502, allocations: 2.118 MB / 0.6601 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01764/0.5679, allocations: 9.914 MB / 0.6698 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.846e-05/0.568, allocations: 65.77 kB / 0.6699 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=182): time 4.468e-06/0.568, allocations: 0 / 0.6699 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=206): time 0.03785/0.6058, allocations: 13.96 MB / 0.6835 GB, free: 0.7734 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.977e-05/0.606, allocations: 160.7 kB / 0.6837 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009153/0.6151, allocations: 6.314 MB / 0.6898 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002744/0.6154, allocations: 59.89 kB / 0.6899 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003337/0.6188, allocations: 5.085 MB / 0.6948 GB, free: 5.129 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008128/0.6196, allocations: 0.8161 MB / 0.6956 GB, free: 4.32 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001991/0.6216, allocations: 1.659 MB / 0.6973 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.927e-05/0.6217, allocations: 305.1 kB / 0.6976 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/0.625, allocations: 2.292 MB / 0.6998 GB, free: 52 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00663/0.6316, allocations: 7.634 MB / 0.7072 GB, free: 5.832 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2157/0.8473, allocations: 10.8 MB / 0.7178 GB, free: 174.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001666/0.8475, allocations: 55.06 kB / 0.7179 GB, free: 174.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.01899/0.8665, allocations: 9.564 MB / 0.7272 GB, free: 171.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.8667, allocations: 94.41 kB / 0.7273 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002745/0.8669, allocations: 189.9 kB / 0.7275 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003421/0.8673, allocations: 249.2 kB / 0.7277 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006589/0.8739, allocations: 1.9 MB / 0.7296 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003915/0.8743, allocations: 375.4 kB / 0.7299 GB, free: 171.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006443/0.8808, allocations: 410.7 kB / 0.7303 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001325/0.8821, allocations: 0.5126 MB / 0.7308 GB, free: 171.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1027): * Single equations (assignments): 1016 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00731/0.8894, allocations: 3.286 MB / 0.734 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/0.8905, allocations: 0.5287 MB / 0.7345 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.8918, allocations: 0.6237 MB / 0.7351 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.063e-05/0.8919, allocations: 23.12 kB / 0.7352 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.8919, allocations: 0 / 0.7352 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.337e-05/0.8919, allocations: 10.72 kB / 0.7352 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01666/0.9086, allocations: 14.99 MB / 0.7498 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.671e-05/0.9087, allocations: 47.69 kB / 0.7499 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.9098, allocations: 450.6 kB / 0.7503 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.111e-05/0.9098, allocations: 62.81 kB / 0.7504 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.91, allocations: 98.56 kB / 0.7504 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.446e-05/0.91, allocations: 94.88 kB / 0.7505 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.074e-05/0.9101, allocations: 78.5 kB / 0.7506 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003217/0.9133, allocations: 4.3 MB / 0.7548 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009086/0.9142, allocations: 0.6326 MB / 0.7554 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004638/0.9147, allocations: 107.3 kB / 0.7555 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/0.9163, allocations: 111.3 kB / 0.7556 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002313/0.9166, allocations: 311.2 kB / 0.7559 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.9167, allocations: 128.4 kB / 0.7561 GB, free: 159.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00452/0.9212, allocations: 3.953 MB / 0.7599 GB, free: 158.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9212, allocations: 0 / 0.7599 GB, free: 158.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006629/0.9279, allocations: 1.308 MB / 0.7612 GB, free: 157.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * Number of states: 0 () * 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 (238): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003917/0.9318, allocations: 5.03 MB / 0.7661 GB, free: 151.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008114/0.9399, allocations: 5.488 MB / 0.7715 GB, free: 146.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.53e-05/0.94, allocations: 8 kB / 0.7715 GB, free: 146.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.9417, allocations: 1.2 MB / 0.7726 GB, free: 145.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005716/0.9475, allocations: 0.8866 MB / 0.7735 GB, free: 145 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06999/1.017, allocations: 78.89 MB / 0.8506 GB, free: 54.74 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004722/1.022, allocations: 5.064 MB / 0.8555 GB, free: 49.64 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005437/1.028, allocations: 2.546 MB / 0.858 GB, free: 47.09 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003139/1.031, allocations: 3.292 MB / 0.8612 GB, free: 43.8 MB / 0.545 GB Notification: Performance of SimCode: time 5.72e-07/1.031, allocations: 0 / 0.8612 GB, free: 43.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3166/1.347, allocations: 98.16 MB / 0.9571 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/12.2, allocations: 1.969 kB / 0.9571 GB, free: 180.2 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches