Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",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.0007869/0.000787, allocations: 93.67 kB / 17 MB, free: 6.375 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.0008242/0.0008242, allocations: 186.7 kB / 17.89 MB, free: 5.926 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.294/1.294, allocations: 223.2 MB / 241.9 MB, free: 84 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.1896/0.1896, allocations: 44.23 MB / 337.2 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004351/0.0004353, allocations: 15.98 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1272, allocations: 61.91 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.03735/0.1646, allocations: 41.98 MB / 0.5016 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3101/0.4747, allocations: 9.118 MB / 0.5105 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008892/0.4837, allocations: 192 kB / 0.5107 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007258/0.491, allocations: 2.063 MB / 0.5127 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02022/0.5112, allocations: 6.15 MB / 0.5187 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003394/0.5147, allocations: 0.5149 MB / 0.5192 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006742/0.5214, allocations: 4.68 MB / 0.5238 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006738/0.5282, allocations: 3.528 MB / 0.5272 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003122/0.5314, allocations: 1.301 MB / 0.5285 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003329/0.5347, allocations: 2.08 MB / 0.5305 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009031/0.5357, allocations: 170.8 kB / 0.5307 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002186/0.5379, allocations: 0.7971 MB / 0.5315 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001965/0.5399, allocations: 1.771 MB / 0.5332 GB, free: 5.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001472/0.5413, allocations: 0.916 MB / 0.5341 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00677/0.5481, allocations: 5.958 MB / 0.5399 GB, free: 1.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.5482, allocations: 0 / 0.5399 GB, free: 1.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5482, allocations: 1.875 kB / 0.5399 GB, free: 1.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003098/0.5485, allocations: 0 / 0.5399 GB, free: 1.719 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01009/0.5586, allocations: 4.219 MB / 0.544 GB, free: 15.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.5587, allocations: 10.47 kB / 0.544 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003256/0.5619, allocations: 0.8524 MB / 0.5449 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01077/0.5727, allocations: 3.285 MB / 0.5481 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005696/0.5784, allocations: 2.645 MB / 0.5507 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.5787, allocations: 254 kB / 0.5509 GB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001193/0.5799, allocations: 330 kB / 0.5512 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02081/0.6007, allocations: 12.21 MB / 0.5631 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001474/0.6009, allocations: 39.66 kB / 0.5632 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004949/0.6014, allocations: 154 kB / 0.5633 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004209/0.6056, allocations: 2.841 MB / 0.5661 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02149/0.6271, allocations: 11.09 MB / 0.5769 GB, free: 3.152 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05883/0.686, allocations: 40.7 MB / 0.6167 GB, free: 9.688 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009062/0.6951, allocations: 4.685 MB / 0.6213 GB, free: 4.773 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003443/0.6986, allocations: 2.429 MB / 0.6236 GB, free: 2.344 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001255/0.6999, allocations: 1.32 MB / 0.6249 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.6999, allocations: 56.56 kB / 0.625 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of pre-optimization done (n=249): time 5.431e-06/0.6999, allocations: 4 kB / 0.625 GB, free: 0.7422 MB / 462.1 MB Notification: Performance of matching and sorting (n=267): time 0.04749/0.7474, allocations: 18.64 MB / 0.6432 GB, free: 13.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/0.7476, allocations: 73.41 kB / 0.6432 GB, free: 13.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006627/0.7542, allocations: 3.154 MB / 0.6463 GB, free: 10.74 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000742/0.755, allocations: 68.36 kB / 0.6464 GB, free: 10.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002826/0.7579, allocations: 3.113 MB / 0.6494 GB, free: 7.574 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001436/0.7593, allocations: 0.9764 MB / 0.6504 GB, free: 6.605 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005981/0.7599, allocations: 118.7 kB / 0.6505 GB, free: 6.492 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0004971/0.7604, allocations: 0.5659 MB / 0.651 GB, free: 5.918 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004186/0.7646, allocations: 2.436 MB / 0.6534 GB, free: 3.477 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006423/0.7711, allocations: 5.696 MB / 0.659 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0057/0.7768, allocations: 3.716 MB / 0.6626 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.004e-05/0.7769, allocations: 32 kB / 0.6627 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01731/0.7942, allocations: 8.925 MB / 0.6714 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.7943, allocations: 53 kB / 0.6714 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/0.7945, allocations: 116 kB / 0.6715 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002969/0.7975, allocations: 1.07 MB / 0.6726 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004647/0.8022, allocations: 1.345 MB / 0.6739 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007056/0.8092, allocations: 5.131 MB / 0.6789 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004416/0.8137, allocations: 324.6 kB / 0.6792 GB, free: 7.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001138/0.8149, allocations: 338.6 kB / 0.6795 GB, free: 6.992 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[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 (725): * Single equations (assignments): 718 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005212/0.8201, allocations: 2.405 MB / 0.6819 GB, free: 4.574 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007256/0.8208, allocations: 316 kB / 0.6822 GB, free: 4.262 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008808/0.8296, allocations: 5.352 MB / 0.6874 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.89e-05/0.8297, allocations: 52.06 kB / 0.6875 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.8298, allocations: 4.125 kB / 0.6875 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.583e-05/0.8298, allocations: 17.12 kB / 0.6875 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02119/0.851, allocations: 13.03 MB / 0.7002 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/0.851, allocations: 12 kB / 0.7002 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001744/0.8528, allocations: 419.3 kB / 0.7006 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002448/0.8553, allocations: 0.9007 MB / 0.7015 GB, free: 248 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002917/0.8556, allocations: 54.88 kB / 0.7015 GB, free: 196 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2358/1.091, allocations: 4.488 MB / 0.7059 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.443e-05/1.091, allocations: 18.36 kB / 0.7059 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01433/1.106, allocations: 7.992 MB / 0.7138 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/1.107, allocations: 362.6 kB / 0.7141 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008106/1.108, allocations: 53.47 kB / 0.7141 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/1.11, allocations: 152.8 kB / 0.7143 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004181/1.11, allocations: 166.3 kB / 0.7145 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002007/1.11, allocations: 79.14 kB / 0.7145 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003435/1.114, allocations: 1.935 MB / 0.7164 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.41e-07/1.114, allocations: 0 / 0.7164 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005908/1.12, allocations: 1.078 MB / 0.7175 GB, free: 178.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (208): * Single equations (assignments): 201 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01122/1.131, allocations: 8.658 MB / 0.7259 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007781/1.139, allocations: 5.965 MB / 0.7318 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/1.139, allocations: 1.969 kB / 0.7318 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002893/1.142, allocations: 2.239 MB / 0.7339 GB, free: 172 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/1.144, allocations: 448.1 kB / 0.7344 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05044/1.195, allocations: 35.3 MB / 0.7688 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003673/1.198, allocations: 3.708 MB / 0.7725 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004551/1.203, allocations: 2.15 MB / 0.7746 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00309/1.206, allocations: 2.104 MB / 0.7766 GB, free: 130.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.453e-06/1.206, allocations: 0 / 0.7766 GB, free: 130.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/1.311, allocations: 76.46 MB / 0.8513 GB, free: 54.75 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000135/1.311, allocations: 195.3 kB / 0.8515 GB, free: 54.51 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.025/5.336, allocations: 4.062 kB / 0.8515 GB, free: 54.51 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat