Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.271/1.271, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008/0.0008001, allocations: 94.28 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2995/0.2995, allocations: 43.56 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003442/0.0003443, allocations: 12 kB / 432.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1048, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.2277/0.3325, allocations: 66.89 MB / 0.5447 GB, free: 2.719 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02796/0.3605, allocations: 13.87 MB / 0.5583 GB, free: 9.27 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01363/0.3742, allocations: 315.1 kB / 0.5586 GB, free: 9.223 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01209/0.3863, allocations: 3.501 MB / 0.562 GB, free: 7.984 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02925/0.4156, allocations: 10.37 MB / 0.5721 GB, free: 3.484 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004963/0.4206, allocations: 0.8416 MB / 0.5729 GB, free: 2.949 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04288/0.4635, allocations: 35.18 MB / 0.6073 GB, free: 3.066 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008928/0.4725, allocations: 6.234 MB / 0.6134 GB, free: 12.77 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003434/0.476, allocations: 1.724 MB / 0.6151 GB, free: 11.04 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004044/0.48, allocations: 2.699 MB / 0.6177 GB, free: 8.328 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001216/0.4813, allocations: 192 kB / 0.6179 GB, free: 8.141 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003197/0.4845, allocations: 1.295 MB / 0.6192 GB, free: 6.844 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003053/0.4876, allocations: 2.365 MB / 0.6215 GB, free: 4.473 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004202/0.4918, allocations: 2.607 MB / 0.624 GB, free: 1.844 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008006/0.4998, allocations: 7.556 MB / 0.6314 GB, free: 10.27 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4998, allocations: 0 / 0.6314 GB, free: 10.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4998, allocations: 0 / 0.6314 GB, free: 10.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003315/0.5002, allocations: 0 / 0.6314 GB, free: 10.27 MB / 458.7 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.01232/0.5125, allocations: 5.541 MB / 0.6368 GB, free: 4.648 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.5126, allocations: 12.03 kB / 0.6368 GB, free: 4.637 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002271/0.5148, allocations: 0.9145 MB / 0.6377 GB, free: 3.711 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03624/0.5511, allocations: 6.241 MB / 0.6438 GB, free: 13.45 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009098/0.5602, allocations: 4.759 MB / 0.6484 GB, free: 8.609 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002738/0.5605, allocations: 315.8 kB / 0.6488 GB, free: 8.297 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001267/0.5618, allocations: 423.5 kB / 0.6492 GB, free: 7.883 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02237/0.5842, allocations: 12.87 MB / 0.6617 GB, free: 10.11 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002321/0.5845, allocations: 63.45 kB / 0.6618 GB, free: 10.05 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001128/0.5856, allocations: 191.8 kB / 0.662 GB, free: 9.863 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003986/0.5896, allocations: 2.503 MB / 0.6644 GB, free: 7.359 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2035/0.7931, allocations: 10.54 MB / 0.6747 GB, free: 135.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05147/0.8446, allocations: 49.71 MB / 0.7232 GB, free: 102.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00972/0.8544, allocations: 4.427 MB / 0.7276 GB, free: 100.9 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003108/0.8576, allocations: 2.324 MB / 0.7298 GB, free: 99.89 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01189/0.8695, allocations: 6.496 MB / 0.7362 GB, free: 96.65 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.8696, allocations: 54.38 kB / 0.7362 GB, free: 96.6 MB / 490.7 MB Notification: Performance of pre-optimization done (n=183): time 4.999e-06/0.8696, allocations: 1.031 kB / 0.7362 GB, free: 96.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=195): time 0.04125/0.9108, allocations: 17.59 MB / 0.7534 GB, free: 88.23 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/0.9109, allocations: 235.9 kB / 0.7536 GB, free: 87.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00783/0.9188, allocations: 5.909 MB / 0.7594 GB, free: 84.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003418/0.9191, allocations: 53.7 kB / 0.7595 GB, free: 84.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002021/0.9212, allocations: 4.107 MB / 0.7635 GB, free: 80.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008663/0.922, allocations: 0.7738 MB / 0.7642 GB, free: 79.43 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005031/0.9226, allocations: 142.6 kB / 0.7644 GB, free: 79.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003896/0.923, allocations: 0.6118 MB / 0.765 GB, free: 78.68 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003118/0.9261, allocations: 2.386 MB / 0.7673 GB, free: 76.29 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004466/0.9306, allocations: 6.902 MB / 0.774 GB, free: 67.17 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007947/0.9385, allocations: 10.09 MB / 0.7839 GB, free: 54.85 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001071/0.9387, allocations: 44 kB / 0.7839 GB, free: 54.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.01383/0.9525, allocations: 9.522 MB / 0.7932 GB, free: 45.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.9527, allocations: 76 kB / 0.7933 GB, free: 45.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00022/0.9529, allocations: 156 kB / 0.7934 GB, free: 45.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001556/0.9545, allocations: 0.7401 MB / 0.7942 GB, free: 44.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004629/0.9591, allocations: 1.665 MB / 0.7958 GB, free: 42.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005825/0.9649, allocations: 6.482 MB / 0.8021 GB, free: 35.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005017/0.97, allocations: 391.5 kB / 0.8025 GB, free: 35.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001002/0.971, allocations: 450.7 kB / 0.8029 GB, free: 35.07 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004147/0.9752, allocations: 2.694 MB / 0.8056 GB, free: 32.36 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008922/0.9761, allocations: 493.6 kB / 0.806 GB, free: 31.88 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005087/0.9812, allocations: 3.285 MB / 0.8092 GB, free: 28.57 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-05/0.9812, allocations: 20 kB / 0.8093 GB, free: 28.55 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.9812, allocations: 8 kB / 0.8093 GB, free: 28.54 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/0.9813, allocations: 11.91 kB / 0.8093 GB, free: 28.53 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01597/0.9972, allocations: 8.826 MB / 0.8179 GB, free: 19.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.028e-05/0.9973, allocations: 4 kB / 0.8179 GB, free: 19.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001493/0.9988, allocations: 331.8 kB / 0.8182 GB, free: 19.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001288/1, allocations: 0.4954 MB / 0.8187 GB, free: 18.81 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001886/1, allocations: 39.98 kB / 0.8187 GB, free: 18.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005155/1.005, allocations: 5.789 MB / 0.8244 GB, free: 12.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/1.005, allocations: 4 kB / 0.8244 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006965/1.012, allocations: 5.954 MB / 0.8302 GB, free: 6.711 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/1.014, allocations: 0.8186 MB / 0.831 GB, free: 5.867 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009663/1.015, allocations: 39.94 kB / 0.831 GB, free: 5.828 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002192/1.017, allocations: 99.88 kB / 0.8311 GB, free: 5.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003944/1.018, allocations: 119.6 kB / 0.8312 GB, free: 5.617 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/1.018, allocations: 52 kB / 0.8313 GB, free: 5.566 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005723/1.024, allocations: 3.774 MB / 0.835 GB, free: 1.824 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.024, allocations: 0 / 0.835 GB, free: 1.824 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006262/1.03, allocations: 1.237 MB / 0.8362 GB, free: 0.5898 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00922/1.039, allocations: 6.616 MB / 0.8427 GB, free: 9.906 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00902/1.048, allocations: 5.883 MB / 0.8484 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/1.048, allocations: 0 / 0.8484 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002371/1.051, allocations: 1.777 MB / 0.8501 GB, free: 2.234 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006428/1.057, allocations: 0.6226 MB / 0.8507 GB, free: 1.621 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2668/1.324, allocations: 49.27 MB / 0.8989 GB, free: 134 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005728/1.33, allocations: 4.137 MB / 0.9029 GB, free: 132.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003179/1.333, allocations: 2.619 MB / 0.9055 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of SimCode: time 7.31e-07/1.333, allocations: 0 / 0.9055 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.576/9.909, allocations: 145.8 MB / 1.048 GB, free: 7.555 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches