Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001402/0.001402, allocations: 108.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001492/0.001492, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2086/0.2086, allocations: 46.12 MB / 343.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 74 kB / 417.2 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.116, allocations: 62.43 MB / 479.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.02959/0.1457, allocations: 30.32 MB / 0.498 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.1608, allocations: 6.267 MB / 0.5041 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006569/0.1674, allocations: 123.8 kB / 0.5042 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2704/0.4379, allocations: 1.924 MB / 0.5061 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003377/0.4414, allocations: 1.035 MB / 0.5071 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007666/0.4421, allocations: 272.5 kB / 0.5073 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003621/0.4458, allocations: 2.351 MB / 0.5096 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003242/0.449, allocations: 2.422 MB / 0.512 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001519/0.4506, allocations: 0.8863 MB / 0.5129 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.4523, allocations: 1.265 MB / 0.5141 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003932/0.4527, allocations: 193.8 kB / 0.5143 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.4542, allocations: 0.7038 MB / 0.515 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.4554, allocations: 1.122 MB / 0.5161 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001319/0.4567, allocations: 1.318 MB / 0.5174 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004783/0.4615, allocations: 4.182 MB / 0.5214 GB, free: 8.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.4615, allocations: 0 / 0.5214 GB, free: 8.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4615, allocations: 3.938 kB / 0.5214 GB, free: 8.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.06e-05/0.4616, allocations: 1.188 kB / 0.5214 GB, free: 8.777 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: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.005184/0.4668, allocations: 2.86 MB / 0.5242 GB, free: 7.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.4669, allocations: 9.625 kB / 0.5242 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005858/0.4675, allocations: 482.6 kB / 0.5247 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004622/0.4721, allocations: 1.559 MB / 0.5262 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002501/0.4746, allocations: 1.318 MB / 0.5275 GB, free: 5.273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.509e-05/0.4747, allocations: 146.2 kB / 0.5277 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004756/0.4752, allocations: 188.4 kB / 0.5278 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009716/0.4849, allocations: 6.247 MB / 0.5339 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.478e-05/0.485, allocations: 13.16 kB / 0.534 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/0.4853, allocations: 87.02 kB / 0.534 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001714/0.487, allocations: 1.348 MB / 0.5354 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01037/0.4973, allocations: 5.339 MB / 0.5406 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03316/0.5306, allocations: 20.17 MB / 0.5603 GB, free: 9.184 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004751/0.5353, allocations: 2 MB / 0.5622 GB, free: 7.062 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.5365, allocations: 0.6939 MB / 0.5629 GB, free: 6.367 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007064/0.5436, allocations: 3.612 MB / 0.5664 GB, free: 2.641 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.5437, allocations: 42.98 kB / 0.5665 GB, free: 2.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.586e-06/0.5437, allocations: 0 / 0.5665 GB, free: 2.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005441/0.5491, allocations: 1.982 MB / 0.5684 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.5492, allocations: 59.78 kB / 0.5685 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003492/0.5527, allocations: 1.935 MB / 0.5703 GB, free: 14.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.117e-05/0.5528, allocations: 40.59 kB / 0.5704 GB, free: 14.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001364/0.5541, allocations: 1.833 MB / 0.5722 GB, free: 12.71 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003195/0.5545, allocations: 310 kB / 0.5725 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000923/0.5554, allocations: 0.6207 MB / 0.5731 GB, free: 11.78 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.5556, allocations: 361.9 kB / 0.5734 GB, free: 11.42 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.557, allocations: 0.8842 MB / 0.5743 GB, free: 10.54 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002784/0.5598, allocations: 2.749 MB / 0.577 GB, free: 6.887 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004304/0.5641, allocations: 3.97 MB / 0.5808 GB, free: 2.262 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.465e-05/0.5642, allocations: 20 kB / 0.5809 GB, free: 2.242 MB / 430.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.00519/0.5694, allocations: 3.523 MB / 0.5843 GB, free: 15.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.806e-05/0.5694, allocations: 32.94 kB / 0.5843 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-05/0.5695, allocations: 68 kB / 0.5844 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.255e-05/0.5696, allocations: 84 kB / 0.5845 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/0.5715, allocations: 0.6624 MB / 0.5851 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001102/0.5716, allocations: 131.2 kB / 0.5853 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.5735, allocations: 415.5 kB / 0.5856 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/0.5738, allocations: 194.7 kB / 0.5858 GB, free: 13.63 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (362): * Single equations (assignments): 357 * Array equations: 5 * 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.002188/0.576, allocations: 1.338 MB / 0.5871 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.5762, allocations: 153.9 kB / 0.5873 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003792/0.5766, allocations: 204.3 kB / 0.5875 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.5767, allocations: 8 kB / 0.5875 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.5767, allocations: 3.938 kB / 0.5875 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.5767, allocations: 7.984 kB / 0.5875 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007187/0.5839, allocations: 4.019 MB / 0.5914 GB, free: 7.805 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/0.5839, allocations: 11.94 kB / 0.5914 GB, free: 7.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003866/0.5843, allocations: 103.8 kB / 0.5915 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.194e-05/0.5843, allocations: 8 kB / 0.5915 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.791e-05/0.5844, allocations: 27.94 kB / 0.5916 GB, free: 7.656 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.5844, allocations: 11.94 kB / 0.5916 GB, free: 7.645 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.5844, allocations: 8 kB / 0.5916 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.5859, allocations: 1.265 MB / 0.5928 GB, free: 6.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004058/0.5863, allocations: 254.7 kB / 0.5931 GB, free: 6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/0.5866, allocations: 16 kB / 0.5931 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005427/0.5871, allocations: 31.88 kB / 0.5931 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.756e-05/0.5872, allocations: 55.83 kB / 0.5932 GB, free: 5.898 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.627e-05/0.5873, allocations: 28 kB / 0.5932 GB, free: 5.871 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001781/0.5891, allocations: 1.275 MB / 0.5944 GB, free: 4.605 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5891, allocations: 0 / 0.5944 GB, free: 4.605 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002528/0.5916, allocations: 0.6751 MB / 0.5951 GB, free: 3.93 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (57): * Single equations (assignments): 54 * 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.002027/0.5936, allocations: 1.871 MB / 0.5969 GB, free: 1.953 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003697/0.5974, allocations: 2.244 MB / 0.5991 GB, free: 15.72 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.5974, allocations: 0 / 0.5991 GB, free: 15.72 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005941/0.598, allocations: 469.4 kB / 0.5996 GB, free: 15.27 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.5993, allocations: 236.6 kB / 0.5998 GB, free: 15.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0371/0.6364, allocations: 23.3 MB / 0.6225 GB, free: 4.781 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003789/0.6402, allocations: 2.271 MB / 0.6248 GB, free: 2.48 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002467/0.6427, allocations: 0.9597 MB / 0.6257 GB, free: 1.516 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/0.6444, allocations: 1.05 MB / 0.6267 GB, free: 476 kB / 478.1 MB Notification: Performance of SimCode: time 1.212e-06/0.6444, allocations: 0 / 0.6267 GB, free: 476 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05992/0.7043, allocations: 31.87 MB / 0.6579 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/0.7046, allocations: 195.4 kB / 0.658 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.793/3.498, allocations: 0 / 0.658 GB, free: 0.4961 MB / 0.4981 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches