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.002359/0.002359, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.131/2.131, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001139/0.001139, allocations: 94.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3557/0.3557, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.611e-05/3.615e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1193, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5254/0.6448, allocations: 108.7 MB / 0.5791 GB, free: 11.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003304/0.6452, allocations: 86.48 kB / 0.5792 GB, free: 11.05 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4784/1.124, allocations: 107.3 MB / 0.684 GB, free: 7.504 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.096e-06/1.124, allocations: 0 / 0.684 GB, free: 7.504 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004301/1.124, allocations: 108 kB / 0.6841 GB, free: 7.398 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.02296/1.147, allocations: 5.275 MB / 0.6892 GB, free: 2.055 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/1.147, allocations: 11.97 kB / 0.6892 GB, free: 2.043 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004831/1.152, allocations: 0.935 MB / 0.6901 GB, free: 1.094 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05421/1.206, allocations: 6.935 MB / 0.6969 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02774/1.234, allocations: 6.887 MB / 0.7036 GB, free: 3.195 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006294/1.235, allocations: 403.1 kB / 0.704 GB, free: 2.801 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003174/1.238, allocations: 0.5465 MB / 0.7045 GB, free: 2.254 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.443/1.681, allocations: 12.67 MB / 0.7169 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006315/1.682, allocations: 70.66 kB / 0.717 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003514/1.685, allocations: 257.6 kB / 0.7172 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004697/1.69, allocations: 1.131 MB / 0.7183 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04867/1.739, allocations: 10.3 MB / 0.7284 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08804/1.827, allocations: 57.21 MB / 0.7843 GB, free: 67.47 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01771/1.845, allocations: 4.353 MB / 0.7885 GB, free: 65.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004835/1.849, allocations: 2.383 MB / 0.7908 GB, free: 64.72 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02514/1.875, allocations: 9.968 MB / 0.8006 GB, free: 59.88 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.254e-05/1.875, allocations: 58.91 kB / 0.8006 GB, free: 59.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=192): time 6.753e-06/1.875, allocations: 0 / 0.8006 GB, free: 59.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=218): time 0.07432/1.949, allocations: 16.2 MB / 0.8164 GB, free: 53.74 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.35e-05/1.949, allocations: 206.5 kB / 0.8166 GB, free: 53.51 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009926/1.959, allocations: 4.207 MB / 0.8208 GB, free: 52.05 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005658/1.96, allocations: 56.52 kB / 0.8208 GB, free: 52 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003162/1.963, allocations: 3.64 MB / 0.8244 GB, free: 49.13 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001371/1.964, allocations: 0.8336 MB / 0.8252 GB, free: 48.53 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007929/1.965, allocations: 130.2 kB / 0.8253 GB, free: 48.43 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004152/1.966, allocations: 0.5871 MB / 0.8259 GB, free: 48 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005563/1.971, allocations: 2.193 MB / 0.828 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008228/1.98, allocations: 6.151 MB / 0.834 GB, free: 40.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008121/1.988, allocations: 3.657 MB / 0.8376 GB, free: 37.13 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001326/1.988, allocations: 40 kB / 0.8376 GB, free: 37.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=860) (initialization): time 0.02371/2.012, allocations: 8.66 MB / 0.8461 GB, free: 29.51 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000112/2.012, allocations: 67.95 kB / 0.8462 GB, free: 29.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001938/2.012, allocations: 140 kB / 0.8463 GB, free: 29.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004458/2.016, allocations: 0.933 MB / 0.8472 GB, free: 28.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009475/2.026, allocations: 1.511 MB / 0.8487 GB, free: 27.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01319/2.039, allocations: 7.418 MB / 0.8559 GB, free: 20.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008535/2.048, allocations: 361.9 kB / 0.8563 GB, free: 20.02 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001477/2.049, allocations: 403.1 kB / 0.8566 GB, free: 19.63 MB / 0.4948 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 () * 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.001421/2.051, allocations: 0.6071 MB / 0.8572 GB, free: 19.02 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/2.052, allocations: 434.4 kB / 0.8577 GB, free: 18.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/2.062, allocations: 3.542 MB / 0.8611 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.457e-05/2.062, allocations: 24 kB / 0.8611 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/2.062, allocations: 4 kB / 0.8611 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.394e-05/2.062, allocations: 14.22 kB / 0.8612 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02567/2.088, allocations: 9.238 MB / 0.8702 GB, free: 8.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.159e-05/2.088, allocations: 4 kB / 0.8702 GB, free: 8.086 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003302/2.092, allocations: 348 kB / 0.8705 GB, free: 7.809 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003741/2.095, allocations: 0.6849 MB / 0.8712 GB, free: 7.312 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003599/2.096, allocations: 39.19 kB / 0.8712 GB, free: 7.277 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/2.107, allocations: 6.551 MB / 0.8776 GB, free: 1.137 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/2.107, allocations: 0 / 0.8776 GB, free: 1.137 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01877/2.126, allocations: 6.436 MB / 0.8839 GB, free: 12 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002938/2.129, allocations: 0.7377 MB / 0.8846 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000975/2.13, allocations: 32 kB / 0.8846 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00307/2.133, allocations: 109.5 kB / 0.8848 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005378/2.133, allocations: 139.2 kB / 0.8849 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/2.134, allocations: 59.64 kB / 0.8849 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007922/2.142, allocations: 2.97 MB / 0.8878 GB, free: 8.438 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.192e-06/2.142, allocations: 0 / 0.8878 GB, free: 8.438 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00825/2.15, allocations: 1.188 MB / 0.889 GB, free: 7.254 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 () * 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.01735/2.167, allocations: 7.122 MB / 0.896 GB, free: 0.8242 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3657/2.533, allocations: 5.643 MB / 0.9015 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/2.533, allocations: 0 / 0.9015 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005615/2.539, allocations: 1.955 MB / 0.9034 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004668/2.544, allocations: 0.5289 MB / 0.9039 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04228/2.586, allocations: 11.65 MB / 0.9153 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01082/2.597, allocations: 4.122 MB / 0.9193 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005864/2.603, allocations: 2.52 MB / 0.9218 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.774e-06/2.603, allocations: 0 / 0.9218 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.791/7.393, allocations: 145.1 MB / 1.063 GB, free: 19.47 MB / 0.5105 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