Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.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.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",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.001572/0.001572, allocations: 179 kB / 14.15 MB, free: 1.176 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.602/1.602, allocations: 221.3 MB / 236 MB, free: 2.984 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009723/0.0009722, allocations: 88.02 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2271/0.2271, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.284e-05/4.299e-05, allocations: 7.938 kB / 451.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1467, allocations: 61.92 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4873/0.634, allocations: 108.8 MB / 0.6081 GB, free: 12.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.6343, allocations: 83.95 kB / 0.6082 GB, free: 12.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7031/1.337, allocations: 129.4 MB / 0.7346 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.926e-06/1.337, allocations: 0 / 0.7346 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0007489/1.338, allocations: 133.5 kB / 0.7347 GB, free: 110.7 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.02828/1.367, allocations: 6.713 MB / 0.7413 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/1.367, allocations: 7.844 kB / 0.7413 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006303/1.373, allocations: 1.077 MB / 0.7423 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03756/1.41, allocations: 9.38 MB / 0.7515 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02706/1.438, allocations: 8.437 MB / 0.7597 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000571/1.438, allocations: 468.9 kB / 0.7602 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003948/1.442, allocations: 0.6223 MB / 0.7608 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04081/1.483, allocations: 15.78 MB / 0.7762 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004579/1.484, allocations: 87.67 kB / 0.7763 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002107/1.486, allocations: 289.7 kB / 0.7766 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002112/1.488, allocations: 1.47 MB / 0.778 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02977/1.518, allocations: 13.67 MB / 0.7913 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09203/1.61, allocations: 69 MB / 0.8587 GB, free: 39.43 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01757/1.627, allocations: 7.131 MB / 0.8657 GB, free: 32.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005483/1.633, allocations: 5.086 MB / 0.8707 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0262/1.659, allocations: 17.29 MB / 0.8875 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/1.659, allocations: 64.5 kB / 0.8876 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=289): time 5.511e-06/1.659, allocations: 0 / 0.8876 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of matching and sorting (n=373): time 0.5019/2.161, allocations: 48.53 MB / 0.935 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/2.161, allocations: 322.2 kB / 0.9353 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01048/2.172, allocations: 4.797 MB / 0.94 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001347/2.173, allocations: 81.17 kB / 0.9401 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004231/2.177, allocations: 4.3 MB / 0.9443 GB, free: 111 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00275/2.18, allocations: 1.354 MB / 0.9456 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00121/2.181, allocations: 163.1 kB / 0.9457 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005026/2.182, allocations: 0.6533 MB / 0.9464 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006976/2.189, allocations: 4.555 MB / 0.9508 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01129/2.2, allocations: 8.856 MB / 0.9595 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/2.211, allocations: 6.291 MB / 0.9656 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001475/2.211, allocations: 45.16 kB / 0.9657 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1059) (initialization): time 0.0389/2.25, allocations: 17.56 MB / 0.9828 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001416/2.25, allocations: 67.06 kB / 0.9829 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002519/2.25, allocations: 147.1 kB / 0.983 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01436/2.264, allocations: 4.765 MB / 0.9877 GB, free: 94.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008023/2.273, allocations: 1.933 MB / 0.9896 GB, free: 94.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03361/2.306, allocations: 25.34 MB / 1.014 GB, free: 82.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01006/2.316, allocations: 0.595 MB / 1.015 GB, free: 82.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0024/2.319, allocations: 474.5 kB / 1.015 GB, free: 82.29 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 59 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (956): * Single equations (assignments): 950 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002637/2.321, allocations: 0.717 MB / 1.016 GB, free: 81.72 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001654/2.323, allocations: 0.5266 MB / 1.017 GB, free: 81.43 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02424/2.347, allocations: 12.51 MB / 1.029 GB, free: 72.11 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.845e-05/2.347, allocations: 43.44 kB / 1.029 GB, free: 72.07 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.753e-05/2.348, allocations: 16 kB / 1.029 GB, free: 72.05 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.881e-05/2.348, allocations: 23.02 kB / 1.029 GB, free: 72.05 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0444/2.392, allocations: 22.27 MB / 1.051 GB, free: 54.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.015e-05/2.392, allocations: 3.719 kB / 1.051 GB, free: 54.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003775/2.396, allocations: 0.6398 MB / 1.051 GB, free: 53.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01266/2.409, allocations: 4.525 MB / 1.056 GB, free: 50.26 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001191/2.41, allocations: 64.53 kB / 1.056 GB, free: 50.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03037/2.44, allocations: 24.61 MB / 1.08 GB, free: 25.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/2.44, allocations: 3.953 kB / 1.08 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03053/2.471, allocations: 18.72 MB / 1.098 GB, free: 6.383 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002194/2.473, allocations: 0.5526 MB / 1.099 GB, free: 5.805 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002602/2.476, allocations: 63.98 kB / 1.099 GB, free: 5.742 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005515/2.481, allocations: 340.7 kB / 1.099 GB, free: 5.41 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001762/2.483, allocations: 234.7 kB / 1.099 GB, free: 5.176 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004821/2.483, allocations: 92.72 kB / 1.099 GB, free: 5.086 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006119/2.49, allocations: 3.398 MB / 1.103 GB, free: 1.715 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.61e-07/2.49, allocations: 3.938 kB / 1.103 GB, free: 1.711 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01078/2.5, allocations: 1.837 MB / 1.104 GB, free: 15.88 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (283): * Single equations (assignments): 277 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4114/2.912, allocations: 19.57 MB / 1.124 GB, free: 119.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02769/2.94, allocations: 12.06 MB / 1.135 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/2.94, allocations: 5.188 kB / 1.135 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01243/2.952, allocations: 5.787 MB / 1.141 GB, free: 119 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006309/2.958, allocations: 0.6871 MB / 1.142 GB, free: 119 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04617/3.005, allocations: 16.65 MB / 1.158 GB, free: 115.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01088/3.016, allocations: 4.934 MB / 1.163 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008724/3.024, allocations: 2.8 MB / 1.165 GB, free: 113.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006876/3.031, allocations: 3.088 MB / 1.168 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of SimCode: time 3.326e-06/3.031, allocations: 3.969 kB / 1.168 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2137/3.245, allocations: 145.6 MB / 1.311 GB, free: 0.6719 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/3.245, allocations: 190 kB / 1.311 GB, free: 448 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.111/10.36, allocations: 0 / 1.311 GB, free: 448 kB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat