Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.2 MB / 241 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000847/0.000847, allocations: 90.77 kB / 292.1 MB, free: 10.72 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3578/0.3578, allocations: 44.22 MB / 387.5 MB, free: 38.53 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.000377, allocations: 8 kB / 460 MB, free: 1.457 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4141, allocations: 61.9 MB / 0.5096 GB, free: 37.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1551/0.5693, allocations: 106.9 MB / 0.6141 GB, free: 4.145 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/0.5695, allocations: 83.94 kB / 0.6142 GB, free: 4.066 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6365/1.206, allocations: 128.5 MB / 0.7396 GB, free: 92.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.206, allocations: 0 / 0.7396 GB, free: 92.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005075/1.207, allocations: 112.4 kB / 0.7397 GB, free: 92.91 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02435/1.231, allocations: 6.575 MB / 0.7461 GB, free: 89.78 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.786e-05/1.231, allocations: 10.41 kB / 0.7461 GB, free: 89.78 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005315/1.236, allocations: 1.076 MB / 0.7472 GB, free: 89.28 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02628/1.263, allocations: 6.428 MB / 0.7535 GB, free: 87.44 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02043/1.283, allocations: 7.988 MB / 0.7613 GB, free: 83.23 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004936/1.284, allocations: 429 kB / 0.7617 GB, free: 83.08 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004783/1.288, allocations: 0.568 MB / 0.7622 GB, free: 82.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04364/1.332, allocations: 15.24 MB / 0.7771 GB, free: 68.42 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006441/1.333, allocations: 55.48 kB / 0.7772 GB, free: 68.37 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003968/1.337, allocations: 261.9 kB / 0.7774 GB, free: 68.16 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002764/1.34, allocations: 1.661 MB / 0.7791 GB, free: 66.5 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03162/1.371, allocations: 14.74 MB / 0.7935 GB, free: 51.74 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.088/1.459, allocations: 55.45 MB / 0.8476 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01981/1.479, allocations: 8.006 MB / 0.8554 GB, free: 2.961 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002478/1.482, allocations: 2.215 MB / 0.8576 GB, free: 368 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.64e-05/1.482, allocations: 65.08 kB / 0.8576 GB, free: 292 kB / 0.4948 GB Notification: Performance of pre-optimization done (n=367): time 1.109e-05/1.482, allocations: 0 / 0.8576 GB, free: 292 kB / 0.4948 GB Notification: Performance of matching and sorting (n=419): time 0.4607/1.943, allocations: 39.44 MB / 0.8962 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.489e-05/1.943, allocations: 119.8 kB / 0.8963 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007595/1.95, allocations: 3.801 MB / 0.9 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001227/1.952, allocations: 90.31 kB / 0.9001 GB, free: 114 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00268/1.954, allocations: 3.828 MB / 0.9038 GB, free: 112 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002711/1.957, allocations: 1.492 MB / 0.9053 GB, free: 111 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005145/1.958, allocations: 152.4 kB / 0.9054 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005252/1.958, allocations: 0.6324 MB / 0.906 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006896/1.965, allocations: 3.883 MB / 0.9098 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009355/1.974, allocations: 7.628 MB / 0.9173 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00836/1.983, allocations: 5.411 MB / 0.9226 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001256/1.983, allocations: 38.84 kB / 0.9226 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.02887/2.012, allocations: 14.02 MB / 0.9363 GB, free: 96.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002133/2.012, allocations: 60.06 kB / 0.9363 GB, free: 96.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002976/2.012, allocations: 131.2 kB / 0.9365 GB, free: 96.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007542/2.02, allocations: 2.633 MB / 0.939 GB, free: 96.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007863/2.028, allocations: 1.93 MB / 0.9409 GB, free: 96.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01999/2.048, allocations: 14.07 MB / 0.9547 GB, free: 89.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008717/2.057, allocations: 484.5 kB / 0.9551 GB, free: 89.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002156/2.059, allocations: 427.4 kB / 0.9555 GB, free: 89.73 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.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 (914): * Single equations (assignments): 906 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008684/2.068, allocations: 2.867 MB / 0.9583 GB, free: 88.47 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001919/2.07, allocations: 468.5 kB / 0.9588 GB, free: 88.22 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02078/2.09, allocations: 10.42 MB / 0.969 GB, free: 81.65 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/2.09, allocations: 59.84 kB / 0.969 GB, free: 81.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.787e-05/2.091, allocations: 14.66 kB / 0.969 GB, free: 81.58 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.24e-05/2.091, allocations: 20.28 kB / 0.9691 GB, free: 81.58 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05083/2.141, allocations: 20.96 MB / 0.9895 GB, free: 64.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-05/2.142, allocations: 12 kB / 0.9895 GB, free: 64.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004077/2.146, allocations: 0.7852 MB / 0.9903 GB, free: 63.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007183/2.153, allocations: 2.418 MB / 0.9927 GB, free: 62.38 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001189/2.154, allocations: 72.94 kB / 0.9927 GB, free: 62.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01621/2.17, allocations: 12.83 MB / 1.005 GB, free: 50.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/2.17, allocations: 16 kB / 1.005 GB, free: 50.14 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02835/2.199, allocations: 16.21 MB / 1.021 GB, free: 33.22 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002088/2.201, allocations: 0.4913 MB / 1.022 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002616/2.204, allocations: 77.17 kB / 1.022 GB, free: 32.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005145/2.209, allocations: 292.4 kB / 1.022 GB, free: 32.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001589/2.21, allocations: 262 kB / 1.022 GB, free: 32.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001015/2.211, allocations: 113.9 kB / 1.022 GB, free: 31.98 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006437/2.218, allocations: 2.663 MB / 1.025 GB, free: 29.32 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.91e-07/2.218, allocations: 0 / 1.025 GB, free: 29.32 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01257/2.231, allocations: 1.635 MB / 1.027 GB, free: 27.69 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03062/2.261, allocations: 19.46 MB / 1.046 GB, free: 7.781 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01707/2.278, allocations: 9.684 MB / 1.055 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.089e-05/2.278, allocations: 8 kB / 1.055 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008272/2.287, allocations: 4.246 MB / 1.059 GB, free: 9.801 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005667/2.292, allocations: 0.6294 MB / 1.06 GB, free: 9.188 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4438/2.736, allocations: 142.9 MB / 1.199 GB, free: 35.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009632/2.746, allocations: 4.674 MB / 1.204 GB, free: 34.32 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01009/2.756, allocations: 2.734 MB / 1.207 GB, free: 34.14 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00598/2.762, allocations: 2.862 MB / 1.209 GB, free: 32 MB / 0.5417 GB Notification: Performance of SimCode: time 7.594e-06/2.762, allocations: 0 / 1.209 GB, free: 32 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.519/3.281, allocations: 120.9 MB / 1.327 GB, free: 129.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001421/3.281, allocations: 188.3 kB / 1.328 GB, free: 129 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.766/9.047, allocations: 0 / 1.328 GB, free: 129 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat