Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.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.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",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.002554/0.002553, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 93.36 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2939/0.2939, allocations: 43.49 MB / 353.6 MB, free: 2.289 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.201e-05/2.199e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4869/0.487, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2957/0.7828, allocations: 107.1 MB / 0.5706 GB, free: 8.047 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004598/0.7833, allocations: 79.95 kB / 0.5707 GB, free: 7.969 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9163/1.7, allocations: 129 MB / 0.6967 GB, free: 99.94 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.575e-06/1.7, allocations: 0 / 0.6967 GB, free: 99.94 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005117/1.7, allocations: 138.9 kB / 0.6968 GB, free: 99.94 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2235 * Number of variables: 2235 Notification: Performance of Generate backend data structure: time 0.02926/1.729, allocations: 6.889 MB / 0.7035 GB, free: 96.27 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/1.73, allocations: 9.906 kB / 0.7035 GB, free: 96.27 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06697/1.797, allocations: 9.41 MB / 0.7127 GB, free: 91.46 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03248/1.829, allocations: 8.989 MB / 0.7215 GB, free: 84.31 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004178/1.83, allocations: 208 kB / 0.7217 GB, free: 84.11 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003752/1.833, allocations: 391.8 kB / 0.7221 GB, free: 83.73 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02482/1.858, allocations: 10.02 MB / 0.7318 GB, free: 73.71 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03866/1.897, allocations: 14.25 MB / 0.7458 GB, free: 58.23 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005232/1.897, allocations: 87.14 kB / 0.7458 GB, free: 58.14 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00345/1.901, allocations: 47.05 kB / 0.7459 GB, free: 58.1 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003812/1.905, allocations: 1.53 MB / 0.7474 GB, free: 56.58 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1206/2.025, allocations: 68.27 MB / 0.8141 GB, free: 2.871 MB / 491.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01417/2.04, allocations: 6.611 MB / 0.8205 GB, free: 12.12 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01103/2.051, allocations: 5.16 MB / 0.8256 GB, free: 6.953 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4162/2.467, allocations: 17.74 MB / 0.8429 GB, free: 121.5 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.979e-05/2.467, allocations: 70.59 kB / 0.8429 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=310): time 7.424e-06/2.467, allocations: 0 / 0.8429 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of matching and sorting (n=384): time 0.1714/2.639, allocations: 43.08 MB / 0.885 GB, free: 110.9 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/2.639, allocations: 322.5 kB / 0.8853 GB, free: 110.6 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01143/2.65, allocations: 4.341 MB / 0.8896 GB, free: 109 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001412/2.652, allocations: 29.52 kB / 0.8896 GB, free: 109 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.003798/2.655, allocations: 4.332 MB / 0.8938 GB, free: 105.6 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002831/2.658, allocations: 1.348 MB / 0.8951 GB, free: 104.6 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001854/2.66, allocations: 0 / 0.8951 GB, free: 104.6 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0007924/2.661, allocations: 0.6756 MB / 0.8958 GB, free: 104.2 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01057/2.672, allocations: 4.406 MB / 0.9001 GB, free: 102.5 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01399/2.686, allocations: 8.944 MB / 0.9088 GB, free: 94.75 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01388/2.7, allocations: 6.19 MB / 0.9149 GB, free: 91.61 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001966/2.7, allocations: 51.7 kB / 0.9149 GB, free: 91.56 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1117) (initialization): time 0.05508/2.755, allocations: 16.49 MB / 0.931 GB, free: 78.32 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/2.755, allocations: 72 kB / 0.9311 GB, free: 78.25 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002361/2.755, allocations: 160 kB / 0.9313 GB, free: 78.09 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02432/2.78, allocations: 4.727 MB / 0.9359 GB, free: 74.89 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01429/2.794, allocations: 2.045 MB / 0.9379 GB, free: 73.18 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05562/2.85, allocations: 23.56 MB / 0.9609 GB, free: 52.06 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01193/2.862, allocations: 447.2 kB / 0.9613 GB, free: 51.62 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002765/2.864, allocations: 0.496 MB / 0.9618 GB, free: 51.13 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 723 * Number of states: 0 () * Number of discrete variables: 57 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],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 (1014): * Single equations (assignments): 1008 * 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 {(2,100.0%) 16,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003944/2.868, allocations: 0.5236 MB / 0.9623 GB, free: 50.6 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04313/2.912, allocations: 11.81 MB / 0.9738 GB, free: 38.73 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002691/2.914, allocations: 0.5167 MB / 0.9743 GB, free: 38.21 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04218/2.957, allocations: 12.1 MB / 0.9862 GB, free: 26.05 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.281e-05/2.957, allocations: 40.7 kB / 0.9862 GB, free: 26.01 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.725e-05/2.957, allocations: 16 kB / 0.9862 GB, free: 25.99 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.741e-05/2.957, allocations: 19.92 kB / 0.9862 GB, free: 25.97 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06684/3.024, allocations: 20.75 MB / 1.006 GB, free: 5.188 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.761e-05/3.024, allocations: 0 / 1.006 GB, free: 5.188 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007172/3.031, allocations: 0.6748 MB / 1.007 GB, free: 4.512 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02379/3.055, allocations: 4.501 MB / 1.012 GB, free: 15.99 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001353/3.056, allocations: 7.938 kB / 1.012 GB, free: 15.99 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4339/3.49, allocations: 23.03 MB / 1.034 GB, free: 123.1 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.898e-06/3.49, allocations: 1.125 kB / 1.034 GB, free: 123.1 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05827/3.549, allocations: 18.2 MB / 1.052 GB, free: 120.8 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005996/3.555, allocations: 1.323 MB / 1.053 GB, free: 120.4 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002938/3.558, allocations: 0 / 1.053 GB, free: 120.4 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007856/3.565, allocations: 297.9 kB / 1.053 GB, free: 120.4 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002319/3.568, allocations: 246.9 kB / 1.054 GB, free: 120.4 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001501/3.569, allocations: 98.67 kB / 1.054 GB, free: 120.3 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.008594/3.578, allocations: 2.966 MB / 1.057 GB, free: 119.3 MB / 0.5108 GB Notification: Performance of sort global known variables: time 1.052e-06/3.578, allocations: 0 / 1.057 GB, free: 119.3 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.01313/3.591, allocations: 1.634 MB / 1.058 GB, free: 119.3 MB / 0.5108 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 (295): * Single equations (assignments): 289 * 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,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05681/3.648, allocations: 19 MB / 1.077 GB, free: 112.2 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.03152/3.68, allocations: 11.49 MB / 1.088 GB, free: 108.2 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/3.68, allocations: 0 / 1.088 GB, free: 108.2 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.01861/3.698, allocations: 5.607 MB / 1.093 GB, free: 106 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00636/3.705, allocations: 0.5775 MB / 1.094 GB, free: 105.8 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05604/3.761, allocations: 17.21 MB / 1.111 GB, free: 93.66 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01208/3.773, allocations: 5.069 MB / 1.116 GB, free: 89.91 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009118/3.782, allocations: 3.219 MB / 1.119 GB, free: 86.94 MB / 0.5108 GB Notification: Performance of SimCode: time 2.695e-06/3.782, allocations: 0 / 1.119 GB, free: 86.94 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.104/9.886, allocations: 217.8 MB / 1.332 GB, free: 72.04 MB / 0.5265 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat