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.0009469/0.0009471, allocations: 169 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009681/0.000968, allocations: 102.1 kB / 281.6 MB, free: 5.312 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.2027/0.2027, allocations: 44.14 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.184e-05/2.199e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.146, allocations: 61.91 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4588/0.6049, allocations: 109.2 MB / 0.6014 GB, free: 3.129 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.6052, allocations: 83.95 kB / 0.6015 GB, free: 3.047 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6405/1.246, allocations: 102.2 MB / 0.7013 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.537e-06/1.246, allocations: 0 / 0.7013 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005311/1.246, allocations: 101.7 kB / 0.7014 GB, free: 105.3 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.02001/1.266, allocations: 5.107 MB / 0.7064 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/1.266, allocations: 18.31 kB / 0.7064 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0305/1.297, allocations: 6.894 MB / 0.7131 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01972/1.317, allocations: 6.482 MB / 0.7194 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003998/1.317, allocations: 173 kB / 0.7196 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002698/1.32, allocations: 325.3 kB / 0.7199 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01419/1.334, allocations: 7.223 MB / 0.727 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02684/1.361, allocations: 10.91 MB / 0.7376 GB, free: 99.45 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004693/1.362, allocations: 69.78 kB / 0.7377 GB, free: 99.45 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001904/1.363, allocations: 34.34 kB / 0.7377 GB, free: 99.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001478/1.365, allocations: 1.066 MB / 0.7388 GB, free: 99.43 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05715/1.422, allocations: 54.58 MB / 0.7921 GB, free: 60.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004901/1.427, allocations: 3.287 MB / 0.7953 GB, free: 58.61 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002383/1.43, allocations: 2.116 MB / 0.7973 GB, free: 57.66 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003695/1.43, allocations: 336.2 kB / 0.7977 GB, free: 57.36 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/1.43, allocations: 51.69 kB / 0.7977 GB, free: 57.31 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 5.17e-06/1.43, allocations: 0 / 0.7977 GB, free: 57.31 MB / 0.4948 GB Notification: Performance of matching and sorting (n=207): time 0.03714/1.467, allocations: 18.98 MB / 0.8162 GB, free: 47.22 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.573e-05/1.467, allocations: 208.2 kB / 0.8164 GB, free: 46.98 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005224/1.472, allocations: 3.568 MB / 0.8199 GB, free: 43.83 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003914/1.473, allocations: 25.7 kB / 0.82 GB, free: 43.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001747/1.475, allocations: 3.713 MB / 0.8236 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006873/1.475, allocations: 0.7629 MB / 0.8243 GB, free: 39.75 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002034/1.476, allocations: 0 / 0.8243 GB, free: 39.75 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002771/1.476, allocations: 0.5838 MB / 0.8249 GB, free: 39.24 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002306/1.478, allocations: 2.006 MB / 0.8269 GB, free: 37.45 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003812/1.482, allocations: 5.942 MB / 0.8327 GB, free: 29.84 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003824/1.486, allocations: 3.444 MB / 0.836 GB, free: 26.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.001e-05/1.486, allocations: 40 kB / 0.8361 GB, free: 26.87 MB / 0.4948 GB Notification: Performance of matching and sorting (n=853) (initialization): time 0.01198/1.498, allocations: 7.8 MB / 0.8437 GB, free: 20.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.511e-05/1.498, allocations: 67.56 kB / 0.8437 GB, free: 20.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/1.498, allocations: 140 kB / 0.8439 GB, free: 19.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002295/1.5, allocations: 0.9466 MB / 0.8448 GB, free: 19.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004557/1.505, allocations: 1.492 MB / 0.8463 GB, free: 17.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007961/1.513, allocations: 7.24 MB / 0.8533 GB, free: 11.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006134/1.519, allocations: 221.1 kB / 0.8535 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001397/1.521, allocations: 399 kB / 0.8539 GB, free: 10.56 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 786 * 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.0009582/1.522, allocations: 480.5 kB / 0.8544 GB, free: 10.1 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005929/1.527, allocations: 3.431 MB / 0.8577 GB, free: 7.164 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000939/1.528, allocations: 394.9 kB / 0.8581 GB, free: 6.773 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005831/1.534, allocations: 3.121 MB / 0.8611 GB, free: 4.23 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.259e-05/1.534, allocations: 28.66 kB / 0.8612 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.83e-05/1.534, allocations: 8 kB / 0.8612 GB, free: 4.195 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.377e-05/1.534, allocations: 10.17 kB / 0.8612 GB, free: 4.195 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02089/1.555, allocations: 7.959 MB / 0.869 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.366e-05/1.555, allocations: 0 / 0.869 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/1.557, allocations: 324.2 kB / 0.8693 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002301/1.559, allocations: 0.671 MB / 0.8699 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002876/1.56, allocations: 11.23 kB / 0.8699 GB, free: 13.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008748/1.568, allocations: 6.196 MB / 0.876 GB, free: 7.004 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/1.569, allocations: 0 / 0.876 GB, free: 7.004 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/1.579, allocations: 5.775 MB / 0.8816 GB, free: 1.121 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002262/1.581, allocations: 427.9 kB / 0.882 GB, free: 0.6797 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001385/1.583, allocations: 7.562 kB / 0.882 GB, free: 0.6758 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001901/1.585, allocations: 71.89 kB / 0.8821 GB, free: 0.6055 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004474/1.585, allocations: 129.1 kB / 0.8822 GB, free: 492 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/1.585, allocations: 52 kB / 0.8823 GB, free: 440 kB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006196/1.592, allocations: 2.422 MB / 0.8847 GB, free: 14 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.11e-07/1.592, allocations: 0 / 0.8847 GB, free: 14 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009309/1.601, allocations: 0.9843 MB / 0.8856 GB, free: 13.02 MB / 0.5261 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 (157): * Single equations (assignments): 152 * 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.01045/1.611, allocations: 6.773 MB / 0.8922 GB, free: 6.168 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009457/1.621, allocations: 5.074 MB / 0.8972 GB, free: 1.102 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/1.621, allocations: 4 kB / 0.8972 GB, free: 1.098 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.3462/1.967, allocations: 1.761 MB / 0.8989 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0036/1.971, allocations: 445.5 kB / 0.8993 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03228/2.003, allocations: 10.3 MB / 0.9094 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008274/2.012, allocations: 3.971 MB / 0.9133 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007283/2.019, allocations: 2.082 MB / 0.9153 GB, free: 121.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00518/2.024, allocations: 2.337 MB / 0.9176 GB, free: 121.3 MB / 0.5261 GB Notification: Performance of SimCode: time 3.426e-06/2.024, allocations: 0 / 0.9176 GB, free: 121.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.157/2.181, allocations: 83.13 MB / 0.9988 GB, free: 90.63 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/2.181, allocations: 159.7 kB / 0.9989 GB, free: 90.42 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.861/7.042, allocations: 0 / 0.9989 GB, free: 90.42 MB / 0.5261 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