Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.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.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",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.001507/0.001506, allocations: 181.9 kB / 16.4 MB, free: 5.723 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.92/1.92, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001756/0.001756, allocations: 87.16 kB / 270.9 MB, free: 8.371 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.5164/0.5164, allocations: 43.56 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00074/0.00074, allocations: 16 kB / 431.5 MB, free: 6.051 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1439, allocations: 58.84 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5033/0.6472, allocations: 108.8 MB / 0.5851 GB, free: 9.762 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003291/0.6476, allocations: 79.95 kB / 0.5852 GB, free: 9.684 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8057/1.453, allocations: 107.2 MB / 0.6899 GB, free: 85.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.318e-06/1.453, allocations: 0 / 0.6899 GB, free: 85.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006015/1.454, allocations: 109.7 kB / 0.69 GB, free: 85.54 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.03467/1.489, allocations: 5.752 MB / 0.6956 GB, free: 83.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.275e-05/1.489, allocations: 9.719 kB / 0.6956 GB, free: 83.21 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005642/1.495, allocations: 0.9349 MB / 0.6965 GB, free: 83.12 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05785/1.552, allocations: 6.927 MB / 0.7033 GB, free: 82.76 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02603/1.578, allocations: 6.925 MB / 0.7101 GB, free: 82.03 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006117/1.579, allocations: 407.6 kB / 0.7104 GB, free: 82.02 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003283/1.582, allocations: 0.5333 MB / 0.711 GB, free: 82.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04389/1.626, allocations: 12.79 MB / 0.7235 GB, free: 78.84 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005077/1.627, allocations: 79.55 kB / 0.7235 GB, free: 78.83 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00276/1.63, allocations: 258.2 kB / 0.7238 GB, free: 78.83 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002881/1.633, allocations: 1.128 MB / 0.7249 GB, free: 78.82 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03195/1.665, allocations: 10.49 MB / 0.7351 GB, free: 76.21 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09121/1.756, allocations: 57.21 MB / 0.791 GB, free: 33.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/1.774, allocations: 4.409 MB / 0.7953 GB, free: 31.44 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02472/1.799, allocations: 9.971 MB / 0.805 GB, free: 26.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/1.799, allocations: 58.97 kB / 0.8051 GB, free: 26.37 MB / 490.7 MB Notification: Performance of pre-optimization done (n=192): time 7.134e-06/1.799, allocations: 4 kB / 0.8051 GB, free: 26.37 MB / 490.7 MB Notification: Performance of matching and sorting (n=218): time 0.08567/1.885, allocations: 18.97 MB / 0.8236 GB, free: 14.14 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.268e-05/1.885, allocations: 205.2 kB / 0.8238 GB, free: 13.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01045/1.896, allocations: 4.257 MB / 0.828 GB, free: 10.31 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005523/1.896, allocations: 57.7 kB / 0.828 GB, free: 10.25 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003141/1.899, allocations: 3.634 MB / 0.8316 GB, free: 6.949 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001303/1.901, allocations: 0.8249 MB / 0.8324 GB, free: 6.223 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009165/1.902, allocations: 135.8 kB / 0.8325 GB, free: 6.094 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000497/1.902, allocations: 0.5934 MB / 0.8331 GB, free: 5.57 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006048/1.908, allocations: 2.263 MB / 0.8353 GB, free: 3.664 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009629/1.918, allocations: 6.203 MB / 0.8414 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009888/1.928, allocations: 3.688 MB / 0.845 GB, free: 8.641 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001394/1.928, allocations: 40 kB / 0.845 GB, free: 8.602 MB / 0.4948 GB Notification: Performance of matching and sorting (n=860) (initialization): time 0.0275/1.956, allocations: 8.791 MB / 0.8536 GB, free: 0.8125 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001446/1.956, allocations: 70.34 kB / 0.8537 GB, free: 0.7461 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002832/1.956, allocations: 136 kB / 0.8538 GB, free: 0.6133 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005018/1.961, allocations: 0.9444 MB / 0.8547 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01021/1.971, allocations: 1.509 MB / 0.8562 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01636/1.988, allocations: 7.625 MB / 0.8636 GB, free: 6.277 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007482/1.995, allocations: 351.5 kB / 0.864 GB, free: 5.934 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001692/1.997, allocations: 396 kB / 0.8643 GB, free: 5.547 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 638 * Number of states: 0 () * Number of discrete variables: 45 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (798): * Single equations (assignments): 793 * 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%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008113/2.005, allocations: 2.58 MB / 0.8669 GB, free: 2.961 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/2.007, allocations: 430.4 kB / 0.8673 GB, free: 2.535 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3792/2.386, allocations: 3.605 MB / 0.8708 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.93e-05/2.386, allocations: 23.06 kB / 0.8708 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.202e-05/2.386, allocations: 7.125 kB / 0.8708 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.299e-05/2.386, allocations: 10.19 kB / 0.8708 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04559/2.432, allocations: 9.31 MB / 0.8799 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.604e-05/2.432, allocations: 1.312 kB / 0.8799 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004569/2.436, allocations: 348.4 kB / 0.8803 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005601/2.442, allocations: 0.6876 MB / 0.8809 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006404/2.443, allocations: 37.22 kB / 0.881 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01768/2.46, allocations: 6.736 MB / 0.8875 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/2.461, allocations: 3.953 kB / 0.8875 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02367/2.484, allocations: 6.374 MB / 0.8938 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004158/2.488, allocations: 0.7412 MB / 0.8945 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00221/2.491, allocations: 41.47 kB / 0.8945 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00586/2.497, allocations: 114.6 kB / 0.8946 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001058/2.498, allocations: 129.1 kB / 0.8948 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004078/2.498, allocations: 55.67 kB / 0.8948 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01194/2.51, allocations: 3.01 MB / 0.8978 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.553e-06/2.51, allocations: 2 kB / 0.8978 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01356/2.524, allocations: 1.188 MB / 0.8989 GB, free: 101.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (169): * Single equations (assignments): 164 * 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%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02636/2.55, allocations: 7.238 MB / 0.906 GB, free: 100 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02352/2.574, allocations: 5.767 MB / 0.9116 GB, free: 98.26 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/2.574, allocations: 0.75 kB / 0.9116 GB, free: 98.26 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008569/2.582, allocations: 2 MB / 0.9136 GB, free: 97.44 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006899/2.589, allocations: 0.5264 MB / 0.9141 GB, free: 97.21 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1892/2.779, allocations: 139.2 MB / 1.05 GB, free: 20.63 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01394/2.793, allocations: 4.12 MB / 1.054 GB, free: 19.15 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008739/2.802, allocations: 2.518 MB / 1.057 GB, free: 17.12 MB / 0.5573 GB Notification: Performance of SimCode: time 1.914e-06/2.802, allocations: 0 / 1.057 GB, free: 17.12 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.324/8.126, allocations: 145.1 MB / 1.198 GB, free: 120.7 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat