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.001527/0.001527, allocations: 186 kB / 16.4 MB, free: 5.699 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.232/2.232, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001168/0.001168, allocations: 91.39 kB / 270.9 MB, free: 8.375 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.506/0.506, allocations: 43.56 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006398/0.0006399, allocations: 11.98 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1328, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5023/0.6352, allocations: 107.9 MB / 0.5842 GB, free: 10.59 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/0.6356, allocations: 83.95 kB / 0.5842 GB, free: 10.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9567/1.592, allocations: 132 MB / 0.7131 GB, free: 83.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.246e-06/1.592, allocations: 0 / 0.7131 GB, free: 83.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000605/1.593, allocations: 138 kB / 0.7133 GB, free: 83.53 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: 2235 * Number of variables: 2235 Notification: Performance of Generate backend data structure: time 0.03447/1.628, allocations: 7.504 MB / 0.7206 GB, free: 80.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/1.628, allocations: 9.25 kB / 0.7206 GB, free: 80.64 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005743/1.633, allocations: 1.124 MB / 0.7217 GB, free: 80.54 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06908/1.702, allocations: 9.406 MB / 0.7309 GB, free: 80.07 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03248/1.735, allocations: 9.05 MB / 0.7397 GB, free: 79.07 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005994/1.736, allocations: 482.4 kB / 0.7402 GB, free: 78.88 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003948/1.74, allocations: 0.6529 MB / 0.7408 GB, free: 78.69 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05261/1.792, allocations: 16.4 MB / 0.7568 GB, free: 70.75 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004605/1.793, allocations: 86.05 kB / 0.7569 GB, free: 70.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003095/1.796, allocations: 303.5 kB / 0.7572 GB, free: 70.53 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003689/1.8, allocations: 1.529 MB / 0.7587 GB, free: 70.25 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04645/1.846, allocations: 14.36 MB / 0.7727 GB, free: 65.76 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1557/2.002, allocations: 70.63 MB / 0.8417 GB, free: 208 kB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03726/2.039, allocations: 7.457 MB / 0.849 GB, free: 8.594 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06149/2.101, allocations: 17.92 MB / 0.8665 GB, free: 6.57 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.334e-05/2.101, allocations: 60.58 kB / 0.8665 GB, free: 6.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=310): time 7.264e-06/2.101, allocations: 4 kB / 0.8665 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of matching and sorting (n=404): time 0.7134/2.814, allocations: 60.13 MB / 0.9252 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/2.814, allocations: 325.5 kB / 0.9256 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01271/2.827, allocations: 4.976 MB / 0.9304 GB, free: 98.95 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001673/2.829, allocations: 84.64 kB / 0.9305 GB, free: 98.87 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003962/2.833, allocations: 4.215 MB / 0.9346 GB, free: 95.75 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00295/2.836, allocations: 1.462 MB / 0.936 GB, free: 94.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001908/2.838, allocations: 172.2 kB / 0.9362 GB, free: 94.53 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00077/2.839, allocations: 0.6716 MB / 0.9369 GB, free: 94.06 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01874/2.857, allocations: 5.03 MB / 0.9418 GB, free: 92.25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02393/2.881, allocations: 9.442 MB / 0.951 GB, free: 84.61 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01722/2.899, allocations: 6.784 MB / 0.9576 GB, free: 82.05 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001601/2.899, allocations: 40.41 kB / 0.9577 GB, free: 82.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.0639/2.963, allocations: 18.44 MB / 0.9757 GB, free: 75.93 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/2.963, allocations: 67.94 kB / 0.9757 GB, free: 75.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002543/2.963, allocations: 151.9 kB / 0.9759 GB, free: 75.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02507/2.988, allocations: 4.791 MB / 0.9806 GB, free: 75.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01496/3.003, allocations: 2.024 MB / 0.9825 GB, free: 74.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05941/3.063, allocations: 26.26 MB / 1.008 GB, free: 52.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01332/3.076, allocations: 0.6094 MB / 1.009 GB, free: 51.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003554/3.08, allocations: 0.4893 MB / 1.009 GB, free: 51.54 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 () * Number of clocked 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.009792/3.09, allocations: 3.169 MB / 1.012 GB, free: 48.75 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002003/3.092, allocations: 0.5515 MB / 1.013 GB, free: 48.19 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04458/3.136, allocations: 13.5 MB / 1.026 GB, free: 37.38 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.929e-05/3.136, allocations: 44.55 kB / 1.026 GB, free: 37.33 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.732e-05/3.136, allocations: 12 kB / 1.026 GB, free: 37.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001088/3.137, allocations: 23.11 kB / 1.026 GB, free: 37.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07681/3.213, allocations: 23.9 MB / 1.049 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.685e-05/3.214, allocations: 4 kB / 1.049 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007984/3.222, allocations: 0.7059 MB / 1.05 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02453/3.246, allocations: 4.52 MB / 1.055 GB, free: 8.133 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001555/3.248, allocations: 71.98 kB / 1.055 GB, free: 8.062 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4612/3.709, allocations: 25.43 MB / 1.079 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/3.709, allocations: 0 / 1.079 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06219/3.771, allocations: 20.31 MB / 1.099 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006604/3.778, allocations: 1.464 MB / 1.101 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002999/3.781, allocations: 68.69 kB / 1.101 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008731/3.79, allocations: 358.4 kB / 1.101 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002738/3.793, allocations: 255 kB / 1.101 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001279/3.794, allocations: 97.97 kB / 1.102 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01194/3.806, allocations: 3.54 MB / 1.105 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.61e-07/3.806, allocations: 0 / 1.105 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01504/3.821, allocations: 1.931 MB / 1.107 GB, free: 106.1 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 () * Number of clocked 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.06593/3.887, allocations: 21.18 MB / 1.128 GB, free: 98.06 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03694/3.924, allocations: 13.16 MB / 1.14 GB, free: 93.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/3.924, allocations: 0 / 1.14 GB, free: 93.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02113/3.945, allocations: 6.329 MB / 1.147 GB, free: 91.16 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007762/3.953, allocations: 0.6983 MB / 1.147 GB, free: 90.87 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6145/4.567, allocations: 176.7 MB / 1.32 GB, free: 118.8 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01458/4.582, allocations: 5.107 MB / 1.325 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01004/4.592, allocations: 3.263 MB / 1.328 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.783e-06/4.592, allocations: 0 / 1.328 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.074/10.67, allocations: 225.3 MB / 1.548 GB, free: 130.5 MB / 0.5573 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