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.002302/0.002301, allocations: 181.5 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.166/2.166, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001142/0.001142, allocations: 89.94 kB / 267.5 MB, free: 14.03 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.2945/0.2945, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.595e-05/4.614e-05, allocations: 4 kB / 425.4 MB, free: 23.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1257, allocations: 58.86 MB / 484.2 MB, free: 12.35 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5469/0.6727, allocations: 107.8 MB / 0.5782 GB, free: 11.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.6731, allocations: 83.98 kB / 0.5782 GB, free: 11.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.124/1.798, allocations: 132.1 MB / 0.7072 GB, free: 96.77 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.166e-06/1.798, allocations: 0 / 0.7072 GB, free: 96.77 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0009911/1.799, allocations: 132 kB / 0.7073 GB, free: 96.77 MB / 0.4948 GB 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.03699/1.836, allocations: 6.87 MB / 0.714 GB, free: 95.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/1.836, allocations: 12.53 kB / 0.7141 GB, free: 95.8 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006485/1.842, allocations: 1.12 MB / 0.7151 GB, free: 95.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07369/1.916, allocations: 9.418 MB / 0.7243 GB, free: 95.25 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03329/1.949, allocations: 9.007 MB / 0.7331 GB, free: 94.38 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007341/1.95, allocations: 483.4 kB / 0.7336 GB, free: 94.36 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004249/1.954, allocations: 0.6445 MB / 0.7342 GB, free: 94.36 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05453/2.009, allocations: 16.24 MB / 0.7501 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006236/2.01, allocations: 88.52 kB / 0.7502 GB, free: 91 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003815/2.014, allocations: 310.6 kB / 0.7505 GB, free: 91 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005003/2.019, allocations: 1.529 MB / 0.752 GB, free: 90.99 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05821/2.077, allocations: 14.08 MB / 0.7657 GB, free: 90.94 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1289/2.206, allocations: 70.65 MB / 0.8347 GB, free: 41.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06099/2.267, allocations: 7.343 MB / 0.8419 GB, free: 35.42 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01485/2.282, allocations: 5.247 MB / 0.847 GB, free: 30.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04768/2.33, allocations: 17.91 MB / 0.8645 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.397e-05/2.33, allocations: 73.95 kB / 0.8646 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=310): time 7.524e-06/2.33, allocations: 0 / 0.8646 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=404): time 0.6529/2.983, allocations: 51.53 MB / 0.9149 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001812/2.983, allocations: 334.1 kB / 0.9152 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01438/2.997, allocations: 4.924 MB / 0.92 GB, free: 101 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001633/2.999, allocations: 88.95 kB / 0.9201 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004366/3.003, allocations: 4.211 MB / 0.9242 GB, free: 98.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003136/3.007, allocations: 1.467 MB / 0.9257 GB, free: 97.82 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002138/3.009, allocations: 169.9 kB / 0.9258 GB, free: 97.82 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007924/3.01, allocations: 0.6667 MB / 0.9265 GB, free: 97.49 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01274/3.022, allocations: 4.916 MB / 0.9313 GB, free: 97.47 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01616/3.039, allocations: 9.323 MB / 0.9404 GB, free: 91.88 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01632/3.055, allocations: 6.714 MB / 0.9469 GB, free: 91.82 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001959/3.055, allocations: 46.72 kB / 0.947 GB, free: 91.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.06227/3.118, allocations: 18.2 MB / 0.9647 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000145/3.118, allocations: 70.75 kB / 0.9648 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002555/3.118, allocations: 152.2 kB / 0.965 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02565/3.144, allocations: 4.773 MB / 0.9696 GB, free: 87.17 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01531/3.159, allocations: 2.025 MB / 0.9716 GB, free: 86.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05948/3.219, allocations: 25.41 MB / 0.9964 GB, free: 74.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01331/3.232, allocations: 0.6075 MB / 0.997 GB, free: 74.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002739/3.235, allocations: 0.4922 MB / 0.9975 GB, free: 74.71 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * 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 (1004): * Single equations (assignments): 998 * 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,44.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004803/3.24, allocations: 0.7243 MB / 0.9982 GB, free: 74.12 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002598/3.242, allocations: 0.5523 MB / 0.9987 GB, free: 73.82 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04968/3.292, allocations: 13.34 MB / 1.012 GB, free: 67.01 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.923e-05/3.292, allocations: 40.78 kB / 1.012 GB, free: 66.97 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-05/3.292, allocations: 16 kB / 1.012 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001099/3.292, allocations: 17.16 kB / 1.012 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07985/3.372, allocations: 23.75 MB / 1.035 GB, free: 48.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.705e-05/3.372, allocations: 0 / 1.035 GB, free: 48.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008246/3.381, allocations: 0.7017 MB / 1.036 GB, free: 47.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02509/3.406, allocations: 4.522 MB / 1.04 GB, free: 44.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001617/3.407, allocations: 71.28 kB / 1.04 GB, free: 44.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05651/3.464, allocations: 24.58 MB / 1.064 GB, free: 21.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/3.464, allocations: 4 kB / 1.064 GB, free: 21.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05967/3.524, allocations: 20.06 MB / 1.084 GB, free: 1.609 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006541/3.53, allocations: 1.462 MB / 1.085 GB, free: 124 kB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002947/3.533, allocations: 67.95 kB / 1.085 GB, free: 56 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008817/3.542, allocations: 356.3 kB / 1.086 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002503/3.545, allocations: 254.3 kB / 1.086 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001284/3.546, allocations: 101.6 kB / 1.086 GB, free: 15.37 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01145/3.557, allocations: 3.492 MB / 1.089 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.282e-06/3.558, allocations: 0 / 1.089 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.4121/3.97, allocations: 1.922 MB / 1.091 GB, free: 112.8 MB / 0.5261 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 (315): * Single equations (assignments): 309 * 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.06919/4.039, allocations: 20.92 MB / 1.112 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03578/4.075, allocations: 12.92 MB / 1.124 GB, free: 111 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/4.075, allocations: 0 / 1.124 GB, free: 111 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0203/4.095, allocations: 6.212 MB / 1.13 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007164/4.102, allocations: 0.6998 MB / 1.131 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06292/4.165, allocations: 18.33 MB / 1.149 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01256/4.178, allocations: 5.105 MB / 1.154 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01006/4.188, allocations: 3.266 MB / 1.157 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.793e-06/4.188, allocations: 0 / 1.157 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.168/10.36, allocations: 225.6 MB / 1.377 GB, free: 84.65 MB / 0.5261 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