Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 94.17 kB / 17 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 186.7 kB / 17.89 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 223.3 MB / 241.9 MB, free: 296 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2135/0.2135, allocations: 44.25 MB / 337.3 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002906, allocations: 12.69 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 61.93 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.03364/0.1375, allocations: 34.1 MB / 0.4938 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01885/0.1564, allocations: 7.203 MB / 0.5009 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00787/0.1643, allocations: 155.7 kB / 0.501 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005673/0.17, allocations: 1.505 MB / 0.5025 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2944/0.4645, allocations: 4.386 MB / 0.5068 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001967/0.4665, allocations: 252 kB / 0.507 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005705/0.4722, allocations: 2.624 MB / 0.5096 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005756/0.478, allocations: 2.966 MB / 0.5125 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001717/0.4797, allocations: 0.6925 MB / 0.5132 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001722/0.4814, allocations: 1.028 MB / 0.5142 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002748/0.4817, allocations: 89.16 kB / 0.5142 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.483, allocations: 0.5253 MB / 0.5148 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001544/0.4846, allocations: 0.9876 MB / 0.5157 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006731/0.4853, allocations: 0.5269 MB / 0.5162 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004845/0.4901, allocations: 3.42 MB / 0.5196 GB, free: 10.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.149e-05/0.4902, allocations: 0 / 0.5196 GB, free: 10.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.4902, allocations: 1.188 kB / 0.5196 GB, free: 10.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001596/0.4903, allocations: 0 / 0.5196 GB, free: 10.65 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: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.006145/0.4965, allocations: 2.456 MB / 0.522 GB, free: 9.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.4966, allocations: 8.25 kB / 0.522 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004857/0.5014, allocations: 1.628 MB / 0.5236 GB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002805/0.5042, allocations: 1.317 MB / 0.5249 GB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.5044, allocations: 152.7 kB / 0.525 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005347/0.5049, allocations: 189.4 kB / 0.5252 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/0.5161, allocations: 6.423 MB / 0.5315 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.88e-05/0.5162, allocations: 12.28 kB / 0.5315 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002757/0.5165, allocations: 91.33 kB / 0.5316 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002076/0.5186, allocations: 1.404 MB / 0.5329 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.5295, allocations: 5.465 MB / 0.5383 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02915/0.5587, allocations: 20.59 MB / 0.5584 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004241/0.5629, allocations: 2 MB / 0.5603 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009982/0.564, allocations: 0.6834 MB / 0.561 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007385/0.5714, allocations: 3.642 MB / 0.5646 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/0.5714, allocations: 47.12 kB / 0.5646 GB, free: 14.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.617e-06/0.5715, allocations: 0 / 0.5646 GB, free: 14.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005783/0.5772, allocations: 1.972 MB / 0.5665 GB, free: 13.07 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.5773, allocations: 55.84 kB / 0.5666 GB, free: 13.01 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00327/0.5806, allocations: 1.95 MB / 0.5685 GB, free: 11.06 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.021e-05/0.5807, allocations: 41.06 kB / 0.5685 GB, free: 11.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001525/0.5822, allocations: 1.882 MB / 0.5704 GB, free: 9.137 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003374/0.5826, allocations: 313.4 kB / 0.5707 GB, free: 8.836 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.5827, allocations: 56 kB / 0.5707 GB, free: 8.781 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003471/0.5831, allocations: 497.2 kB / 0.5712 GB, free: 8.285 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.5845, allocations: 0.8842 MB / 0.572 GB, free: 7.398 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002763/0.5873, allocations: 2.76 MB / 0.5747 GB, free: 3.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002311/0.5896, allocations: 1.558 MB / 0.5763 GB, free: 2.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.849e-05/0.5896, allocations: 20 kB / 0.5763 GB, free: 2.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005911/0.5956, allocations: 3.527 MB / 0.5797 GB, free: 15 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.856e-05/0.5957, allocations: 36 kB / 0.5798 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-05/0.5958, allocations: 70.92 kB / 0.5798 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001403/0.5959, allocations: 96 kB / 0.5799 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001868/0.5978, allocations: 0.6628 MB / 0.5806 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001104/0.5979, allocations: 127.5 kB / 0.5807 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/0.6001, allocations: 419.3 kB / 0.5811 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002791/0.6004, allocations: 189.5 kB / 0.5813 GB, free: 13.42 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 304 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.arrowLine.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 (365): * Single equations (assignments): 360 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002956/0.6034, allocations: 1.388 MB / 0.5826 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003405/0.6037, allocations: 153.9 kB / 0.5828 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004649/0.6042, allocations: 201.2 kB / 0.583 GB, free: 11.67 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.662e-05/0.6042, allocations: 8 kB / 0.583 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/0.6043, allocations: 4 kB / 0.583 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.6043, allocations: 3.984 kB / 0.583 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006879/0.6112, allocations: 4.098 MB / 0.587 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.6112, allocations: 4 kB / 0.587 GB, free: 7.422 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003894/0.6116, allocations: 107.8 kB / 0.5871 GB, free: 7.316 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.427e-05/0.6116, allocations: 8 kB / 0.5871 GB, free: 7.309 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.6117, allocations: 16 kB / 0.5871 GB, free: 7.293 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.085e-05/0.6117, allocations: 11.98 kB / 0.5871 GB, free: 7.281 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/0.6117, allocations: 11.94 kB / 0.5871 GB, free: 7.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.6133, allocations: 1.269 MB / 0.5884 GB, free: 5.898 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004921/0.6138, allocations: 262.7 kB / 0.5886 GB, free: 5.621 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/0.6139, allocations: 23.98 kB / 0.5886 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004535/0.6144, allocations: 27.89 kB / 0.5887 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.703e-05/0.6145, allocations: 59.83 kB / 0.5887 GB, free: 5.512 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.956e-05/0.6146, allocations: 35.39 kB / 0.5888 GB, free: 5.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002056/0.6166, allocations: 1.271 MB / 0.59 GB, free: 4.219 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.6166, allocations: 0 / 0.59 GB, free: 4.219 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003163/0.6198, allocations: 0.6981 MB / 0.5907 GB, free: 3.52 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003731/0.6202, allocations: 148 kB / 0.5908 GB, free: 3.371 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003239/0.6234, allocations: 2.022 MB / 0.5928 GB, free: 1.359 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.6235, allocations: 4 kB / 0.5928 GB, free: 1.355 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006034/0.6241, allocations: 453.4 kB / 0.5932 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.6254, allocations: 235.8 kB / 0.5935 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/0.6371, allocations: 6.299 MB / 0.5996 GB, free: 10.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002593/0.6398, allocations: 2.32 MB / 0.6019 GB, free: 7.926 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002447/0.6422, allocations: 0.9678 MB / 0.6028 GB, free: 6.953 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002802/0.6425, allocations: 119.4 kB / 0.6029 GB, free: 6.836 MB / 446.1 MB Notification: Performance of SimCode: time 1.593e-06/0.6425, allocations: 0 / 0.6029 GB, free: 6.836 MB / 446.1 MB Notification: Performance of Templates: time 0.02997/0.6725, allocations: 13.6 MB / 0.6162 GB, free: 9.332 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches