Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.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.CutForce,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForce,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001241/0.001246, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2269/0.2269, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 76.84 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1204, allocations: 62.45 MB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutForce): time 0.01671/0.1372, allocations: 14.98 MB / 495.1 MB, free: 6.121 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01178/0.149, allocations: 5.038 MB / 0.4884 GB, free: 1.066 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0035/0.1525, allocations: 115.7 kB / 0.4885 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01121/0.1639, allocations: 5.985 MB / 0.4944 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006738/0.1706, allocations: 2.731 MB / 0.4971 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003455/0.1741, allocations: 1.579 MB / 0.4986 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.236/0.4101, allocations: 7.773 MB / 0.5062 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009927/0.42, allocations: 7.396 MB / 0.5134 GB, free: 12.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005412/0.4255, allocations: 2.969 MB / 0.5163 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007694/0.4332, allocations: 3.778 MB / 0.52 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002761/0.436, allocations: 0.5688 MB / 0.5206 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004696/0.4407, allocations: 1.389 MB / 0.5219 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004284/0.445, allocations: 3.462 MB / 0.5253 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00476/0.4498, allocations: 3.847 MB / 0.529 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009843/0.4597, allocations: 11.26 MB / 0.54 GB, free: 2.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.4597, allocations: 0 / 0.54 GB, free: 2.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4597, allocations: 0 / 0.54 GB, free: 2.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003739/0.4601, allocations: 0 / 0.54 GB, free: 2.602 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.01958/0.4797, allocations: 8.509 MB / 0.5484 GB, free: 12.6 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.4797, allocations: 8.031 kB / 0.5484 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003549/0.4833, allocations: 1.165 MB / 0.5495 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/0.4946, allocations: 2.521 MB / 0.552 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01283/0.5075, allocations: 5.286 MB / 0.5571 GB, free: 3.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004185/0.5079, allocations: 427.3 kB / 0.5575 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002665/0.5106, allocations: 0.5434 MB / 0.5581 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04019/0.5508, allocations: 16.68 MB / 0.5744 GB, free: 1.535 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003805/0.5513, allocations: 66.66 kB / 0.5744 GB, free: 1.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002287/0.5536, allocations: 268.7 kB / 0.5747 GB, free: 1.293 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005156/0.5588, allocations: 2.929 MB / 0.5775 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03185/0.5906, allocations: 12.79 MB / 0.59 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1037/0.6944, allocations: 64.29 MB / 0.6528 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01735/0.7118, allocations: 5.484 MB / 0.6582 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003984/0.7159, allocations: 2.121 MB / 0.6602 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02042/0.7363, allocations: 9.916 MB / 0.6699 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.287e-05/0.7364, allocations: 61.41 kB / 0.67 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=182): time 5.771e-06/0.7364, allocations: 0 / 0.67 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of matching and sorting (n=206): time 0.04671/0.7831, allocations: 14.07 MB / 0.6837 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/0.7834, allocations: 149.5 kB / 0.6839 GB, free: 368 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01779/0.8012, allocations: 6.314 MB / 0.69 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005305/0.8018, allocations: 61.61 kB / 0.6901 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00558/0.8074, allocations: 5.083 MB / 0.695 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001285/0.8087, allocations: 0.819 MB / 0.6958 GB, free: 4.086 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004345/0.813, allocations: 1.66 MB / 0.6975 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.8132, allocations: 301.1 kB / 0.6977 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004236/0.8174, allocations: 2.292 MB / 0.7 GB, free: 15.82 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008224/0.8257, allocations: 7.639 MB / 0.7074 GB, free: 5.598 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2711/1.097, allocations: 10.8 MB / 0.718 GB, free: 174.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001811/1.097, allocations: 53.69 kB / 0.718 GB, free: 174.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.02002/1.117, allocations: 9.564 MB / 0.7274 GB, free: 171.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002848/1.117, allocations: 94.92 kB / 0.7275 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007909/1.118, allocations: 189.7 kB / 0.7277 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006656/1.119, allocations: 249.6 kB / 0.7279 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008578/1.128, allocations: 1.902 MB / 0.7298 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005207/1.128, allocations: 371 kB / 0.7301 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008825/1.137, allocations: 416.4 kB / 0.7305 GB, free: 171.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001567/1.139, allocations: 0.5076 MB / 0.731 GB, free: 171.2 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 (cutForce2b.forceArrow.twoHeadedArrow,cutForce2b.forceArrow.headAtOrigin,cutForce1b.forceArrow.twoHeadedArrow,cutForce1b.forceArrow.headAtOrigin,cutForce2a.forceArrow.twoHeadedArrow,cutForce2a.forceArrow.headAtOrigin,cutForce1a.forceArrow.twoHeadedArrow,cutForce1a.forceArrow.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],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[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],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[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],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[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.006368/1.145, allocations: 3.288 MB / 0.7342 GB, free: 169.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000936/1.146, allocations: 0.5269 MB / 0.7347 GB, free: 169.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001126/1.147, allocations: 0.624 MB / 0.7353 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.759e-05/1.147, allocations: 23.05 kB / 0.7354 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/1.147, allocations: 1.812 kB / 0.7354 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.085e-05/1.147, allocations: 8.766 kB / 0.7354 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0204/1.167, allocations: 16.46 MB / 0.7514 GB, free: 163.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.393e-05/1.168, allocations: 45.31 kB / 0.7515 GB, free: 163.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/1.169, allocations: 383.3 kB / 0.7519 GB, free: 163 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-05/1.169, allocations: 55.72 kB / 0.7519 GB, free: 163 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/1.169, allocations: 82.59 kB / 0.752 GB, free: 163 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.153e-05/1.169, allocations: 72.89 kB / 0.7521 GB, free: 163 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.446e-05/1.169, allocations: 62.5 kB / 0.7521 GB, free: 163 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003176/1.172, allocations: 3.951 MB / 0.756 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/1.173, allocations: 0.6027 MB / 0.7566 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005262/1.174, allocations: 94.61 kB / 0.7566 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/1.176, allocations: 105.9 kB / 0.7567 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/1.176, allocations: 256.9 kB / 0.757 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/1.176, allocations: 110.8 kB / 0.7571 GB, free: 159.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00548/1.181, allocations: 3.949 MB / 0.761 GB, free: 158 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/1.181, allocations: 4 kB / 0.761 GB, free: 158 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007981/1.189, allocations: 1.305 MB / 0.7622 GB, free: 156.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 174 * 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 (201): * Single equations (assignments): 198 * 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.004994/1.194, allocations: 4.643 MB / 0.7668 GB, free: 151.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00858/1.203, allocations: 5.453 MB / 0.7721 GB, free: 147 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.292e-05/1.203, allocations: 5.75 kB / 0.7721 GB, free: 147 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001585/1.205, allocations: 1.132 MB / 0.7732 GB, free: 146 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005483/1.21, allocations: 0.8517 MB / 0.774 GB, free: 145.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08381/1.294, allocations: 78.26 MB / 0.8505 GB, free: 55.38 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004911/1.299, allocations: 5.058 MB / 0.8554 GB, free: 50.29 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005604/1.305, allocations: 2.518 MB / 0.8579 GB, free: 47.76 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003178/1.308, allocations: 3.276 MB / 0.8611 GB, free: 44.48 MB / 0.545 GB Notification: Performance of SimCode: time 1.021e-06/1.308, allocations: 4 kB / 0.8611 GB, free: 44.48 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3602/1.668, allocations: 96.9 MB / 0.9557 GB, free: 181.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/12.59, allocations: 1.438 kB / 0.9557 GB, free: 181.1 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutForce.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutForce/CutForce.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches