Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 109.3 kB / 16.41 MB, free: 6.492 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.00106/0.00106, allocations: 189.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.268/1.268, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1918/0.1918, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 71.88 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09561/0.09708, allocations: 57.8 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01811/0.1152, allocations: 18.01 MB / 0.505 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.1262, allocations: 5.424 MB / 0.5103 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002924/0.1292, allocations: 127.7 kB / 0.5104 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01063/0.1399, allocations: 6.102 MB / 0.5164 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008423/0.1483, allocations: 3.178 MB / 0.5195 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003441/0.1518, allocations: 1.587 MB / 0.521 GB, free: 9.762 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01079/0.1626, allocations: 8.38 MB / 0.5292 GB, free: 1.355 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2089/0.3716, allocations: 7.71 MB / 0.5367 GB, free: 5.418 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005448/0.3771, allocations: 3.264 MB / 0.5399 GB, free: 5.238 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00725/0.3844, allocations: 4.324 MB / 0.5441 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003138/0.3875, allocations: 0.6689 MB / 0.5448 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004937/0.3925, allocations: 1.48 MB / 0.5462 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006166/0.3987, allocations: 4.043 MB / 0.5502 GB, free: 4.402 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008097/0.4068, allocations: 4.478 MB / 0.5546 GB, free: 2.824 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01599/0.4228, allocations: 13.67 MB / 0.5679 GB, free: 12.7 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.4229, allocations: 0 / 0.5679 GB, free: 12.7 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4229, allocations: 0 / 0.5679 GB, free: 12.7 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005125/0.4234, allocations: 0 / 0.5679 GB, free: 12.7 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2935 * Number of variables: 2935 Notification: Performance of Generate backend data structure: time 0.02389/0.4473, allocations: 9.609 MB / 0.5773 GB, free: 6.391 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.4474, allocations: 10.55 kB / 0.5773 GB, free: 6.387 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00432/0.4517, allocations: 1.376 MB / 0.5786 GB, free: 5.504 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0122/0.4639, allocations: 2.753 MB / 0.5813 GB, free: 4.078 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01293/0.4769, allocations: 6.752 MB / 0.5879 GB, free: 14.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005082/0.4774, allocations: 485.1 kB / 0.5884 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00247/0.4799, allocations: 0.6128 MB / 0.589 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03664/0.5166, allocations: 19.49 MB / 0.608 GB, free: 8.766 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003081/0.5169, allocations: 74.69 kB / 0.6081 GB, free: 8.727 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001917/0.5189, allocations: 296.6 kB / 0.6084 GB, free: 8.508 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005417/0.5243, allocations: 3.646 MB / 0.6119 GB, free: 4.91 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03207/0.5564, allocations: 15.18 MB / 0.6268 GB, free: 6.031 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09695/0.6534, allocations: 72.74 MB / 0.6978 GB, free: 12.38 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01716/0.6706, allocations: 6.117 MB / 0.7038 GB, free: 6.121 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004284/0.6749, allocations: 2.541 MB / 0.7062 GB, free: 3.57 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02129/0.6962, allocations: 11.16 MB / 0.7171 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.6963, allocations: 59.38 kB / 0.7172 GB, free: 7.965 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=250): time 5.62e-06/0.6963, allocations: 4 kB / 0.7172 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of matching and sorting (n=274): time 0.04575/0.7421, allocations: 16.49 MB / 0.7333 GB, free: 7.523 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.013e-05/0.7422, allocations: 157.3 kB / 0.7335 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01271/0.7549, allocations: 6.826 MB / 0.7401 GB, free: 0.5352 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0005239/0.7555, allocations: 69.7 kB / 0.7402 GB, free: 472 kB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.005/0.7605, allocations: 5.758 MB / 0.7458 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001429/0.762, allocations: 1.054 MB / 0.7468 GB, free: 9.703 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006208/0.7682, allocations: 1.873 MB / 0.7487 GB, free: 7.824 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.17e-05/0.7684, allocations: 308.4 kB / 0.749 GB, free: 7.523 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005113/0.7735, allocations: 2.743 MB / 0.7516 GB, free: 4.773 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2157/0.9892, allocations: 8.616 MB / 0.7601 GB, free: 190.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01241/1.002, allocations: 12.38 MB / 0.7721 GB, free: 182 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002915/1.002, allocations: 60.34 kB / 0.7722 GB, free: 182 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1243) (initialization): time 0.02171/1.024, allocations: 11.03 MB / 0.783 GB, free: 178 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001821/1.024, allocations: 96.48 kB / 0.7831 GB, free: 178 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003158/1.024, allocations: 211.7 kB / 0.7833 GB, free: 178 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003375/1.025, allocations: 276.9 kB / 0.7835 GB, free: 178 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006942/1.032, allocations: 2.19 MB / 0.7857 GB, free: 177.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003594/1.032, allocations: 405.9 kB / 0.7861 GB, free: 177.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006223/1.038, allocations: 462.2 kB / 0.7865 GB, free: 177.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001301/1.039, allocations: 0.5724 MB / 0.7871 GB, free: 177.5 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 951 * Number of states: 0 () * Number of discrete variables: 60 (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 (1179): * Single equations (assignments): 1168 * 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.006059/1.046, allocations: 3.767 MB / 0.7907 GB, free: 175.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008702/1.046, allocations: 0.5852 MB / 0.7913 GB, free: 175.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004448/1.051, allocations: 3.003 MB / 0.7942 GB, free: 174.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.103e-05/1.051, allocations: 28.22 kB / 0.7943 GB, free: 174.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/1.051, allocations: 0.9375 kB / 0.7943 GB, free: 174.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.21e-05/1.051, allocations: 15.67 kB / 0.7943 GB, free: 174.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03067/1.082, allocations: 25.15 MB / 0.8188 GB, free: 161.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-05/1.082, allocations: 64 kB / 0.8189 GB, free: 161.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/1.084, allocations: 0.6109 MB / 0.8195 GB, free: 160.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-05/1.084, allocations: 80 kB / 0.8196 GB, free: 160.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002321/1.084, allocations: 145.6 kB / 0.8197 GB, free: 160.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.316e-05/1.084, allocations: 126.6 kB / 0.8198 GB, free: 160.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.831e-05/1.084, allocations: 99.62 kB / 0.8199 GB, free: 160.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005005/1.089, allocations: 5.884 MB / 0.8257 GB, free: 154.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/1.091, allocations: 0.71 MB / 0.8264 GB, free: 153.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00105/1.092, allocations: 152.4 kB / 0.8265 GB, free: 153.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002635/1.094, allocations: 152.2 kB / 0.8267 GB, free: 153.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004304/1.095, allocations: 430.1 kB / 0.8271 GB, free: 152.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002062/1.095, allocations: 172.6 kB / 0.8272 GB, free: 152.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005716/1.101, allocations: 4.266 MB / 0.8314 GB, free: 149.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.81e-07/1.101, allocations: 0 / 0.8314 GB, free: 149.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008235/1.109, allocations: 1.55 MB / 0.8329 GB, free: 147.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 288 * 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 (326): * Single equations (assignments): 323 * 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.005809/1.115, allocations: 6.663 MB / 0.8394 GB, free: 140.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.008904/1.124, allocations: 6.548 MB / 0.8458 GB, free: 134.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.743e-05/1.124, allocations: 8 kB / 0.8458 GB, free: 134.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.002108/1.126, allocations: 1.655 MB / 0.8474 GB, free: 133.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006305/1.132, allocations: 0.9792 MB / 0.8484 GB, free: 132.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08592/1.218, allocations: 76.81 MB / 0.9234 GB, free: 43.92 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007933/1.226, allocations: 5.788 MB / 0.9291 GB, free: 38.11 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006717/1.233, allocations: 2.896 MB / 0.9319 GB, free: 35.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004497/1.237, allocations: 3.816 MB / 0.9356 GB, free: 31.39 MB / 0.5919 GB Notification: Performance of SimCode: time 1.002e-06/1.237, allocations: 0 / 0.9356 GB, free: 31.39 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3725/1.61, allocations: 106.9 MB / 1.04 GB, free: 176.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.63/43.24, allocations: 6.812 kB / 1.04 GB, free: 176.5 MB / 0.6075 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches