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.00143/0.00143, allocations: 180 kB / 8.363 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.114/2.114, 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.001092/0.001092, allocations: 89.94 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.289/0.289, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.776e-05/2.774e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4038, allocations: 58.85 MB / 477.2 MB, free: 5.285 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1998/0.6037, allocations: 108.1 MB / 0.5715 GB, free: 7.176 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/0.6041, allocations: 87.92 kB / 0.5716 GB, free: 7.09 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.78/1.384, allocations: 104.9 MB / 0.6741 GB, free: 105.3 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.705e-06/1.384, allocations: 0 / 0.6741 GB, free: 105.3 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003764/1.385, allocations: 118.2 kB / 0.6742 GB, free: 105.3 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.02162/1.406, allocations: 5.265 MB / 0.6793 GB, free: 103.1 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/1.406, allocations: 7.75 kB / 0.6793 GB, free: 103.1 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04976/1.456, allocations: 6.937 MB / 0.6861 GB, free: 102.8 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02562/1.482, allocations: 6.882 MB / 0.6928 GB, free: 100.6 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003771/1.482, allocations: 172.2 kB / 0.693 GB, free: 100.6 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003159/1.485, allocations: 328.7 kB / 0.6933 GB, free: 100.6 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01974/1.505, allocations: 7.556 MB / 0.7007 GB, free: 97.89 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03111/1.536, allocations: 11.34 MB / 0.7117 GB, free: 91.68 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004006/1.537, allocations: 75.84 kB / 0.7118 GB, free: 91.63 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002529/1.539, allocations: 37.22 kB / 0.7118 GB, free: 91.63 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002522/1.542, allocations: 1.13 MB / 0.713 GB, free: 91.27 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08225/1.624, allocations: 56.06 MB / 0.7677 GB, free: 34.91 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006378/1.631, allocations: 3.492 MB / 0.7711 GB, free: 31.28 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00431/1.635, allocations: 2.272 MB / 0.7733 GB, free: 29 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005886/1.636, allocations: 343.7 kB / 0.7737 GB, free: 28.62 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.806e-05/1.636, allocations: 59.81 kB / 0.7737 GB, free: 28.55 MB / 475.1 MB Notification: Performance of pre-optimization done (n=201): time 6.803e-06/1.636, allocations: 0 / 0.7737 GB, free: 28.55 MB / 475.1 MB Notification: Performance of matching and sorting (n=228): time 0.06389/1.7, allocations: 19.96 MB / 0.7932 GB, free: 8.492 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/1.7, allocations: 201.9 kB / 0.7934 GB, free: 8.254 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008139/1.708, allocations: 3.68 MB / 0.797 GB, free: 4.562 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005432/1.708, allocations: 33.7 kB / 0.797 GB, free: 4.523 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003048/1.712, allocations: 3.734 MB / 0.8007 GB, free: 0.7383 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001353/1.713, allocations: 0.8365 MB / 0.8015 GB, free: 15.89 MB / 491.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007867/1.714, allocations: 0 / 0.8015 GB, free: 15.89 MB / 491.1 MB Notification: Performance of setup shared object (initialization): time 0.00064/1.714, allocations: 0.6118 MB / 0.8021 GB, free: 15.27 MB / 491.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005879/1.72, allocations: 2.169 MB / 0.8042 GB, free: 13.1 MB / 491.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01015/1.73, allocations: 6.251 MB / 0.8103 GB, free: 4.797 MB / 491.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009021/1.74, allocations: 3.658 MB / 0.8139 GB, free: 1.137 MB / 491.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001445/1.74, allocations: 43.94 kB / 0.8139 GB, free: 1.094 MB / 491.1 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.02669/1.766, allocations: 8.11 MB / 0.8218 GB, free: 8.973 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.000145/1.767, allocations: 68 kB / 0.8219 GB, free: 8.906 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002499/1.767, allocations: 144 kB / 0.822 GB, free: 8.766 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0049/1.772, allocations: 0.9601 MB / 0.823 GB, free: 7.801 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01056/1.782, allocations: 1.579 MB / 0.8245 GB, free: 6.219 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4298/2.212, allocations: 7.252 MB / 0.8316 GB, free: 116.1 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007657/2.22, allocations: 229.8 kB / 0.8318 GB, free: 116.1 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001915/2.222, allocations: 415.2 kB / 0.8322 GB, free: 116.1 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * 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 (835): * Single equations (assignments): 830 * 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.002772/2.225, allocations: 487.7 kB / 0.8327 GB, free: 116 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01154/2.236, allocations: 3.746 MB / 0.8363 GB, free: 115.9 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001438/2.238, allocations: 404.2 kB / 0.8367 GB, free: 115.9 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/2.249, allocations: 3.488 MB / 0.8401 GB, free: 115.8 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.323e-05/2.25, allocations: 25.72 kB / 0.8402 GB, free: 115.8 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.427e-05/2.25, allocations: 6.188 kB / 0.8402 GB, free: 115.8 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.3e-05/2.25, allocations: 15.5 kB / 0.8402 GB, free: 115.8 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02868/2.278, allocations: 8.55 MB / 0.8485 GB, free: 115.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.739e-05/2.278, allocations: 6.781 kB / 0.8485 GB, free: 115.2 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003539/2.282, allocations: 363.5 kB / 0.8489 GB, free: 115.2 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003855/2.286, allocations: 0.6741 MB / 0.8495 GB, free: 115.1 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004598/2.286, allocations: 14.16 kB / 0.8496 GB, free: 115.1 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0116/2.298, allocations: 6.197 MB / 0.8556 GB, free: 112.3 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.949e-06/2.298, allocations: 3.844 kB / 0.8556 GB, free: 112.3 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01385/2.312, allocations: 6.329 MB / 0.8618 GB, free: 109.6 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002832/2.315, allocations: 0.7141 MB / 0.8625 GB, free: 109.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001087/2.316, allocations: 2.844 kB / 0.8625 GB, free: 109.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003533/2.319, allocations: 84.05 kB / 0.8626 GB, free: 109.2 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007781/2.32, allocations: 146.5 kB / 0.8627 GB, free: 109.2 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002284/2.321, allocations: 59.61 kB / 0.8628 GB, free: 109.2 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.006899/2.327, allocations: 2.494 MB / 0.8652 GB, free: 108.2 MB / 0.4952 GB Notification: Performance of sort global known variables: time 9.22e-07/2.328, allocations: 0 / 0.8652 GB, free: 108.2 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.009214/2.337, allocations: 1.035 MB / 0.8662 GB, free: 108.2 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (179): * Single equations (assignments): 174 * 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.01549/2.352, allocations: 7.325 MB / 0.8734 GB, free: 104.6 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.0128/2.365, allocations: 5.481 MB / 0.8787 GB, free: 102.9 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/2.365, allocations: 0 / 0.8787 GB, free: 102.9 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.004895/2.37, allocations: 1.943 MB / 0.8806 GB, free: 102 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004365/2.375, allocations: 447.3 kB / 0.881 GB, free: 101.8 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03834/2.413, allocations: 11.48 MB / 0.8923 GB, free: 97.7 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01017/2.423, allocations: 4.119 MB / 0.8963 GB, free: 96.23 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006549/2.43, allocations: 2.503 MB / 0.8987 GB, free: 94.21 MB / 0.4952 GB Notification: Performance of SimCode: time 1.403e-06/2.43, allocations: 0 / 0.8987 GB, free: 94.21 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.14/7.57, allocations: 142.8 MB / 1.038 GB, free: 126 MB / 0.5108 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