Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_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.001617/0.001617, allocations: 183.8 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.724/1.724, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.000817/0.000817, allocations: 86.88 kB / 270.2 MB, free: 13.37 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.2133/0.2133, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003251, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1298, allocations: 58.87 MB / 490.4 MB, free: 8.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4045/0.5344, allocations: 108.8 MB / 0.5851 GB, free: 7.164 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004406/0.5349, allocations: 88.56 kB / 0.5852 GB, free: 7.113 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2739/0.8088, allocations: 107.2 MB / 0.6899 GB, free: 3.688 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.228e-06/0.8089, allocations: 0 / 0.6899 GB, free: 3.688 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003931/0.8093, allocations: 111.9 kB / 0.69 GB, free: 3.578 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.02152/0.8308, allocations: 5.748 MB / 0.6956 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.8309, allocations: 8.031 kB / 0.6956 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005662/0.8366, allocations: 0.9388 MB / 0.6966 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02877/0.8654, allocations: 6.931 MB / 0.7033 GB, free: 5.844 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3356/1.201, allocations: 6.922 MB / 0.7101 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005579/1.202, allocations: 410.9 kB / 0.7105 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003092/1.205, allocations: 0.5305 MB / 0.711 GB, free: 106.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03539/1.24, allocations: 12.79 MB / 0.7235 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002878/1.24, allocations: 80.38 kB / 0.7236 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008945/1.241, allocations: 259.4 kB / 0.7238 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001904/1.243, allocations: 1.131 MB / 0.7249 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02378/1.267, allocations: 10.48 MB / 0.7352 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06077/1.328, allocations: 57.2 MB / 0.791 GB, free: 65.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009894/1.338, allocations: 4.406 MB / 0.7953 GB, free: 63.82 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01521/1.353, allocations: 9.987 MB / 0.8051 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/1.353, allocations: 55.03 kB / 0.8051 GB, free: 58.92 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=192): time 5.36e-06/1.353, allocations: 0 / 0.8051 GB, free: 58.92 MB / 0.4948 GB Notification: Performance of matching and sorting (n=218): time 0.04476/1.398, allocations: 18.97 MB / 0.8236 GB, free: 51.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.034e-05/1.398, allocations: 206.8 kB / 0.8238 GB, free: 51.28 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00785/1.406, allocations: 4.258 MB / 0.828 GB, free: 49.85 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007237/1.407, allocations: 53.67 kB / 0.8281 GB, free: 49.79 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003228/1.41, allocations: 3.777 MB / 0.8317 GB, free: 46.93 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001292/1.411, allocations: 0.8311 MB / 0.8326 GB, free: 46.33 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003265/1.412, allocations: 133.7 kB / 0.8327 GB, free: 46.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00035/1.412, allocations: 0.5813 MB / 0.8333 GB, free: 45.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003242/1.415, allocations: 2.26 MB / 0.8355 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004722/1.42, allocations: 6.215 MB / 0.8415 GB, free: 36.49 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004306/1.424, allocations: 3.676 MB / 0.8451 GB, free: 33.22 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-05/1.424, allocations: 40 kB / 0.8452 GB, free: 33.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=860) (initialization): time 0.01453/1.439, allocations: 8.968 MB / 0.8539 GB, free: 25.31 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.927e-05/1.439, allocations: 65 kB / 0.854 GB, free: 25.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/1.439, allocations: 140 kB / 0.8541 GB, free: 25.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/1.441, allocations: 0.9463 MB / 0.855 GB, free: 24.37 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00491/1.446, allocations: 1.506 MB / 0.8565 GB, free: 23.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00793/1.454, allocations: 7.624 MB / 0.8639 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006459/1.461, allocations: 357.1 kB / 0.8643 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001345/1.462, allocations: 400.6 kB / 0.8647 GB, free: 15.29 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 () * Number of clocked 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.005568/1.468, allocations: 2.57 MB / 0.8672 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.469, allocations: 434.4 kB / 0.8676 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006181/1.475, allocations: 3.615 MB / 0.8711 GB, free: 9.609 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/1.475, allocations: 25.25 kB / 0.8712 GB, free: 9.586 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/1.475, allocations: 4 kB / 0.8712 GB, free: 9.582 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.039e-05/1.475, allocations: 14.73 kB / 0.8712 GB, free: 9.578 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/1.491, allocations: 9.315 MB / 0.8803 GB, free: 1.984 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/1.492, allocations: 0 / 0.8803 GB, free: 1.984 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/1.493, allocations: 340.2 kB / 0.8806 GB, free: 1.715 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/1.495, allocations: 0.689 MB / 0.8813 GB, free: 1.223 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/1.495, allocations: 47.41 kB / 0.8813 GB, free: 1.184 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008442/1.504, allocations: 6.732 MB / 0.8879 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/1.504, allocations: 4 kB / 0.8879 GB, free: 10.88 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01039/1.514, allocations: 6.373 MB / 0.8941 GB, free: 5.266 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002833/1.517, allocations: 0.7453 MB / 0.8948 GB, free: 4.559 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008263/1.518, allocations: 37.77 kB / 0.8949 GB, free: 4.527 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/1.52, allocations: 109.7 kB / 0.895 GB, free: 4.453 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000379/1.52, allocations: 133.3 kB / 0.8951 GB, free: 4.371 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001464/1.52, allocations: 53.97 kB / 0.8952 GB, free: 4.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00623/1.526, allocations: 3.023 MB / 0.8981 GB, free: 1.492 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.92e-07/1.526, allocations: 0 / 0.8981 GB, free: 1.492 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008846/1.535, allocations: 1.189 MB / 0.8993 GB, free: 320 kB / 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 () * Number of clocked 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.3651/1.9, allocations: 7.231 MB / 0.9063 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01454/1.915, allocations: 5.765 MB / 0.912 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.579e-05/1.915, allocations: 1.75 kB / 0.912 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004765/1.92, allocations: 2.004 MB / 0.9139 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004207/1.924, allocations: 0.5117 MB / 0.9144 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1112/2.035, allocations: 138.6 MB / 1.05 GB, free: 24.67 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004813/2.04, allocations: 4.121 MB / 1.054 GB, free: 23.83 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005671/2.046, allocations: 2.1 MB / 1.056 GB, free: 23.66 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002991/2.049, allocations: 2.469 MB / 1.058 GB, free: 22.34 MB / 0.5417 GB Notification: Performance of SimCode: time 2.555e-06/2.049, allocations: 0 / 1.058 GB, free: 22.34 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4577/2.507, allocations: 92.5 MB / 1.149 GB, free: 127.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001514/2.507, allocations: 209.9 kB / 1.149 GB, free: 127.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.373/7.88, allocations: 0 / 1.149 GB, free: 127.1 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat