Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.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.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques",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.001147/0.001147, allocations: 102.6 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 184.7 kB / 16.92 MB, free: 6.918 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.478/1.478, allocations: 205.4 MB / 223.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3346/0.3346, allocations: 43.58 MB / 315 MB, free: 9.094 MB / 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.0006303/0.0006303, allocations: 12 kB / 384.7 MB, free: 7.785 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1266, allocations: 58.86 MB / 443.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.2764/0.403, allocations: 71.91 MB / 0.5034 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03695/0.44, allocations: 14.5 MB / 0.5175 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0166/0.4567, allocations: 314.9 kB / 0.5178 GB, free: 8.977 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002515/0.4592, allocations: 0.5284 MB / 0.5183 GB, free: 8.766 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00899/0.4682, allocations: 2.292 MB / 0.5206 GB, free: 7.723 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002547/0.4708, allocations: 0.8077 MB / 0.5214 GB, free: 7.391 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01373/0.4846, allocations: 8.722 MB / 0.5299 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009501/0.4941, allocations: 6.473 MB / 0.5362 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003383/0.4975, allocations: 1.575 MB / 0.5377 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004151/0.5017, allocations: 2.721 MB / 0.5404 GB, free: 12.6 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008683/0.5026, allocations: 192 kB / 0.5406 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002848/0.5054, allocations: 1.307 MB / 0.5419 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002448/0.5079, allocations: 2.411 MB / 0.5442 GB, free: 8.688 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003248/0.5112, allocations: 2.761 MB / 0.5469 GB, free: 5.902 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009343/0.5205, allocations: 9.113 MB / 0.5558 GB, free: 12.76 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.5206, allocations: 4 kB / 0.5558 GB, free: 12.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.5206, allocations: 3.938 kB / 0.5558 GB, free: 12.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002971/0.5209, allocations: 0 / 0.5558 GB, free: 12.75 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: 1959 * Number of variables: 1959 Notification: Performance of Generate backend data structure: time 0.01286/0.5338, allocations: 5.541 MB / 0.5612 GB, free: 7.129 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.5338, allocations: 8.031 kB / 0.5612 GB, free: 7.121 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001596/0.5354, allocations: 0.9262 MB / 0.5621 GB, free: 6.184 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03871/0.5741, allocations: 6.241 MB / 0.5682 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00909/0.5833, allocations: 4.766 MB / 0.5729 GB, free: 11.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/0.5836, allocations: 311.7 kB / 0.5732 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001003/0.5846, allocations: 411.6 kB / 0.5736 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02042/0.605, allocations: 12.9 MB / 0.5862 GB, free: 12.56 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001402/0.6052, allocations: 59.47 kB / 0.5862 GB, free: 12.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005303/0.6057, allocations: 195.8 kB / 0.5864 GB, free: 12.31 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004108/0.6098, allocations: 2.503 MB / 0.5889 GB, free: 9.809 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02109/0.6309, allocations: 10.59 MB / 0.5992 GB, free: 15.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2675/0.8985, allocations: 49.69 MB / 0.6477 GB, free: 106.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.9091, allocations: 4.437 MB / 0.6521 GB, free: 106 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002518/0.9117, allocations: 2.329 MB / 0.6544 GB, free: 106 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009201/0.9209, allocations: 6.504 MB / 0.6607 GB, free: 104.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.921, allocations: 50.22 kB / 0.6607 GB, free: 104.1 MB / 494.1 MB Notification: Performance of pre-optimization done (n=183): time 5.731e-06/0.921, allocations: 0 / 0.6607 GB, free: 104.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=195): time 0.04366/0.9646, allocations: 17.62 MB / 0.678 GB, free: 96.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.9648, allocations: 227.8 kB / 0.6782 GB, free: 96.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01223/0.977, allocations: 5.937 MB / 0.684 GB, free: 94.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005074/0.9776, allocations: 58.75 kB / 0.684 GB, free: 94.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003076/0.9806, allocations: 4.118 MB / 0.6881 GB, free: 91.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001067/0.9817, allocations: 0.7682 MB / 0.6888 GB, free: 90.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009635/0.9827, allocations: 0.6109 MB / 0.6894 GB, free: 90.24 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.066e-05/0.9828, allocations: 306.7 kB / 0.6897 GB, free: 89.94 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00379/0.9865, allocations: 2.416 MB / 0.6921 GB, free: 89.17 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005232/0.9918, allocations: 6.928 MB / 0.6988 GB, free: 82.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008898/1.001, allocations: 10.12 MB / 0.7087 GB, free: 73.78 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/1.001, allocations: 48.25 kB / 0.7087 GB, free: 73.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.01505/1.016, allocations: 9.583 MB / 0.7181 GB, free: 70.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.784e-05/1.016, allocations: 81.72 kB / 0.7182 GB, free: 70.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/1.016, allocations: 159.7 kB / 0.7183 GB, free: 70.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001502/1.018, allocations: 0.7323 MB / 0.719 GB, free: 69.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00467/1.022, allocations: 1.667 MB / 0.7207 GB, free: 68.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005805/1.028, allocations: 6.485 MB / 0.727 GB, free: 62.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005941/1.034, allocations: 395.6 kB / 0.7274 GB, free: 61.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009919/1.035, allocations: 444 kB / 0.7278 GB, free: 61.36 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * Number of states: 0 () * Number of discrete variables: 45 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (880): * Single equations (assignments): 873 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004644/1.04, allocations: 2.695 MB / 0.7304 GB, free: 58.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001247/1.041, allocations: 496.7 kB / 0.7309 GB, free: 58.17 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005798/1.047, allocations: 3.297 MB / 0.7341 GB, free: 54.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.925e-05/1.047, allocations: 20 kB / 0.7342 GB, free: 54.83 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.518e-05/1.047, allocations: 11.98 kB / 0.7342 GB, free: 54.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.997e-05/1.047, allocations: 11.97 kB / 0.7342 GB, free: 54.81 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0137/1.061, allocations: 8.833 MB / 0.7428 GB, free: 45.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/1.061, allocations: 4 kB / 0.7428 GB, free: 45.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/1.062, allocations: 323.5 kB / 0.7431 GB, free: 45.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/1.063, allocations: 0.4974 MB / 0.7436 GB, free: 45.08 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/1.064, allocations: 39.98 kB / 0.7436 GB, free: 45.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004825/1.068, allocations: 5.797 MB / 0.7493 GB, free: 39 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/1.068, allocations: 4 kB / 0.7493 GB, free: 38.99 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006856/1.075, allocations: 5.972 MB / 0.7551 GB, free: 32.96 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/1.077, allocations: 0.8148 MB / 0.7559 GB, free: 32.12 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006138/1.078, allocations: 32.38 kB / 0.756 GB, free: 32.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/1.08, allocations: 107 kB / 0.7561 GB, free: 31.99 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002863/1.08, allocations: 120.9 kB / 0.7562 GB, free: 31.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/1.08, allocations: 52 kB / 0.7562 GB, free: 31.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005421/1.085, allocations: 3.808 MB / 0.7599 GB, free: 28.05 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.085, allocations: 4 kB / 0.76 GB, free: 28.04 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006403/1.092, allocations: 1.236 MB / 0.7612 GB, free: 26.81 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * 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 (154): * Single equations (assignments): 149 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007377/1.099, allocations: 6.628 MB / 0.7676 GB, free: 20.11 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008333/1.108, allocations: 5.908 MB / 0.7734 GB, free: 14.21 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.108, allocations: 0 / 0.7734 GB, free: 14.21 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/1.109, allocations: 1.78 MB / 0.7751 GB, free: 12.41 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005683/1.115, allocations: 0.6297 MB / 0.7758 GB, free: 11.79 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3338/1.449, allocations: 75.15 MB / 0.8491 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005122/1.454, allocations: 4.131 MB / 0.8532 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005767/1.46, allocations: 2.321 MB / 0.8554 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00398/1.464, allocations: 2.572 MB / 0.858 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/1.464, allocations: 0 / 0.858 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1263/1.59, allocations: 92.86 MB / 0.9486 GB, free: 83.86 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/1.591, allocations: 222.8 kB / 0.9489 GB, free: 83.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.313/5.904, allocations: 7.938 kB / 0.9489 GB, free: 83.59 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/FrameTorques/FrameTorques.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches