Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 181 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009478/0.0009478, allocations: 97.56 kB / 292.1 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4056/0.4056, allocations: 44.21 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003659/0.0003663, allocations: 11.98 kB / 460 MB, free: 1.445 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4069/0.4072, allocations: 61.9 MB / 0.5096 GB, free: 37.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/0.5679, allocations: 109.9 MB / 0.617 GB, free: 1.184 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003192/0.5683, allocations: 87.92 kB / 0.6171 GB, free: 1.102 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.585/1.153, allocations: 104.5 MB / 0.7191 GB, free: 94.62 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.327e-06/1.153, allocations: 0 / 0.7191 GB, free: 94.62 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004173/1.154, allocations: 105.2 kB / 0.7192 GB, free: 94.62 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.02317/1.177, allocations: 5.568 MB / 0.7246 GB, free: 92.31 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.764e-05/1.177, allocations: 10.09 kB / 0.7246 GB, free: 92.31 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005639/1.183, allocations: 0.8914 MB / 0.7255 GB, free: 91.88 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02778/1.21, allocations: 6.894 MB / 0.7322 GB, free: 90.87 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01895/1.229, allocations: 6.517 MB / 0.7386 GB, free: 88.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003684/1.23, allocations: 392 kB / 0.739 GB, free: 88.35 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002332/1.232, allocations: 0.5108 MB / 0.7395 GB, free: 88.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02863/1.261, allocations: 12.32 MB / 0.7515 GB, free: 81.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003172/1.261, allocations: 70.47 kB / 0.7516 GB, free: 81.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001589/1.263, allocations: 247.6 kB / 0.7518 GB, free: 81.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001387/1.264, allocations: 1.075 MB / 0.7529 GB, free: 81.32 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02269/1.287, allocations: 10.06 MB / 0.7627 GB, free: 78.05 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05873/1.346, allocations: 55.58 MB / 0.817 GB, free: 24 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009385/1.355, allocations: 4.183 MB / 0.821 GB, free: 19.67 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01456/1.37, allocations: 9.36 MB / 0.8302 GB, free: 10.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.884e-05/1.37, allocations: 59.44 kB / 0.8302 GB, free: 10.14 MB / 490.7 MB Notification: Performance of pre-optimization done (n=171): time 5.681e-06/1.37, allocations: 0 / 0.8302 GB, free: 10.14 MB / 490.7 MB Notification: Performance of matching and sorting (n=197): time 0.04368/1.414, allocations: 17.7 MB / 0.8475 GB, free: 8.27 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/1.414, allocations: 201.2 kB / 0.8477 GB, free: 8.027 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005911/1.42, allocations: 4.14 MB / 0.8518 GB, free: 3.887 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002276/1.42, allocations: 53.7 kB / 0.8518 GB, free: 3.828 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002826/1.423, allocations: 3.654 MB / 0.8554 GB, free: 176 kB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009074/1.424, allocations: 0.7594 MB / 0.8561 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002573/1.424, allocations: 128 kB / 0.8562 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004233/1.424, allocations: 0.5667 MB / 0.8568 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003281/1.428, allocations: 2.097 MB / 0.8588 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007876/1.436, allocations: 5.931 MB / 0.8646 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007197/1.443, allocations: 3.462 MB / 0.868 GB, free: 1.305 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/1.443, allocations: 44 kB / 0.8681 GB, free: 1.262 MB / 0.5105 GB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01867/1.462, allocations: 8.51 MB / 0.8764 GB, free: 8.738 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002127/1.462, allocations: 64.47 kB / 0.8764 GB, free: 8.676 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003041/1.462, allocations: 136 kB / 0.8766 GB, free: 8.543 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/1.465, allocations: 0.9476 MB / 0.8775 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005594/1.471, allocations: 1.431 MB / 0.8789 GB, free: 6.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3806/1.852, allocations: 7.608 MB / 0.8863 GB, free: 121.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006032/1.858, allocations: 339.4 kB / 0.8866 GB, free: 121.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/1.859, allocations: 386 kB / 0.887 GB, free: 121.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 47 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (760): * Single equations (assignments): 755 * 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.005399/1.864, allocations: 2.479 MB / 0.8894 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/1.866, allocations: 411.9 kB / 0.8898 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006091/1.872, allocations: 3.227 MB / 0.893 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.205e-05/1.872, allocations: 24.05 kB / 0.893 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/1.872, allocations: 5.562 kB / 0.893 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/1.872, allocations: 11.69 kB / 0.893 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01603/1.888, allocations: 8.589 MB / 0.9014 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/1.888, allocations: 0 / 0.9014 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/1.889, allocations: 299.7 kB / 0.9017 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002144/1.891, allocations: 0.695 MB / 0.9024 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001597/1.892, allocations: 31.34 kB / 0.9024 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007366/1.899, allocations: 6.734 MB / 0.909 GB, free: 117 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.899, allocations: 0 / 0.909 GB, free: 117 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009238/1.908, allocations: 5.789 MB / 0.9146 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001811/1.91, allocations: 462.1 kB / 0.9151 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004445/1.911, allocations: 27.88 kB / 0.9151 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/1.912, allocations: 106 kB / 0.9152 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/1.912, allocations: 118.2 kB / 0.9153 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/1.912, allocations: 54.36 kB / 0.9153 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005537/1.918, allocations: 2.928 MB / 0.9182 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.92e-07/1.918, allocations: 0 / 0.9182 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007971/1.926, allocations: 1.133 MB / 0.9193 GB, free: 113.4 MB / 0.5261 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 (147): * Single equations (assignments): 142 * 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.0107/1.937, allocations: 6.648 MB / 0.9258 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00954/1.946, allocations: 5.36 MB / 0.931 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.956e-06/1.946, allocations: 3.906 kB / 0.931 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003347/1.95, allocations: 1.805 MB / 0.9328 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003881/1.954, allocations: 0.5311 MB / 0.9333 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1037/2.057, allocations: 133.8 MB / 1.064 GB, free: 19.03 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009171/2.067, allocations: 3.963 MB / 1.068 GB, free: 17.59 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006694/2.073, allocations: 2.001 MB / 1.07 GB, free: 17.43 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004855/2.078, allocations: 2.365 MB / 1.072 GB, free: 15.48 MB / 0.5573 GB Notification: Performance of SimCode: time 2.565e-06/2.078, allocations: 0 / 1.072 GB, free: 15.48 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4984/2.577, allocations: 88.87 MB / 1.159 GB, free: 151.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/2.577, allocations: 206.5 kB / 1.159 GB, free: 151.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.024/7.601, allocations: 2.516 kB / 1.159 GB, free: 151.4 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat