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.001056/0.001056, allocations: 179.6 kB / 14.15 MB, free: 1.176 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.487/1.487, allocations: 221.4 MB / 236 MB, free: 2.953 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.0009607/0.0009607, allocations: 94.98 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.228/0.228, allocations: 44.16 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.39e-05/3.392e-05, allocations: 4.156 kB / 451.9 MB, free: 9.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1447, allocations: 61.91 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5322/0.6769, allocations: 109.8 MB / 0.6091 GB, free: 11.36 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.6772, allocations: 79.94 kB / 0.6091 GB, free: 11.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.267/0.9442, allocations: 104.5 MB / 0.7112 GB, free: 2.211 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.743e-06/0.9443, allocations: 0 / 0.7112 GB, free: 2.211 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002857/0.9446, allocations: 100 kB / 0.7113 GB, free: 2.113 MB / 0.5105 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.4158/1.36, allocations: 5.11 MB / 0.7163 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.118e-05/1.361, allocations: 12.78 kB / 0.7163 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005301/1.366, allocations: 0.8936 MB / 0.7172 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03225/1.398, allocations: 6.898 MB / 0.7239 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02038/1.419, allocations: 6.483 MB / 0.7303 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007443/1.419, allocations: 392.3 kB / 0.7306 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003459/1.423, allocations: 0.5172 MB / 0.7311 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0315/1.454, allocations: 12.22 MB / 0.7431 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003205/1.455, allocations: 69.12 kB / 0.7431 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001533/1.456, allocations: 248.8 kB / 0.7434 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001393/1.458, allocations: 1.071 MB / 0.7444 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02173/1.479, allocations: 9.874 MB / 0.7541 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05954/1.539, allocations: 55.58 MB / 0.8083 GB, free: 67.96 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009672/1.549, allocations: 4.143 MB / 0.8124 GB, free: 66.34 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002925/1.552, allocations: 2.218 MB / 0.8146 GB, free: 65.36 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01433/1.566, allocations: 9.359 MB / 0.8237 GB, free: 60.61 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/1.566, allocations: 64.75 kB / 0.8238 GB, free: 60.55 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=171): time 5.791e-06/1.566, allocations: 0 / 0.8238 GB, free: 60.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=197): time 0.03767/1.604, allocations: 15.07 MB / 0.8385 GB, free: 50.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/1.604, allocations: 216.4 kB / 0.8387 GB, free: 50.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006235/1.61, allocations: 4.1 MB / 0.8427 GB, free: 47.09 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004434/1.611, allocations: 49.7 kB / 0.8427 GB, free: 47.04 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002246/1.613, allocations: 3.659 MB / 0.8463 GB, free: 43.76 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007552/1.614, allocations: 0.7533 MB / 0.847 GB, free: 43.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002227/1.614, allocations: 127.3 kB / 0.8472 GB, free: 42.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000282/1.614, allocations: 0.5747 MB / 0.8477 GB, free: 42.47 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002687/1.617, allocations: 2.033 MB / 0.8497 GB, free: 40.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004296/1.621, allocations: 5.869 MB / 0.8554 GB, free: 33.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004028/1.625, allocations: 3.447 MB / 0.8588 GB, free: 30.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.348e-05/1.625, allocations: 40 kB / 0.8588 GB, free: 30.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01246/1.638, allocations: 8.391 MB / 0.867 GB, free: 22.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.062e-05/1.638, allocations: 64 kB / 0.8671 GB, free: 22.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/1.638, allocations: 139.9 kB / 0.8672 GB, free: 22.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/1.64, allocations: 0.9293 MB / 0.8681 GB, free: 21.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003949/1.644, allocations: 1.438 MB / 0.8695 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007514/1.652, allocations: 7.406 MB / 0.8768 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00542/1.657, allocations: 334.9 kB / 0.8771 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009871/1.658, allocations: 387 kB / 0.8775 GB, free: 13.06 MB / 0.5105 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 () * 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.0009087/1.659, allocations: 0.5986 MB / 0.878 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007631/1.66, allocations: 410.7 kB / 0.8784 GB, free: 12.05 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005384/1.665, allocations: 3.176 MB / 0.8815 GB, free: 9.441 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.915e-05/1.665, allocations: 20 kB / 0.8816 GB, free: 9.422 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.64e-05/1.665, allocations: 8 kB / 0.8816 GB, free: 9.414 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.108e-05/1.665, allocations: 8.625 kB / 0.8816 GB, free: 9.414 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01604/1.681, allocations: 8.534 MB / 0.8899 GB, free: 1.992 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/1.682, allocations: 3 kB / 0.8899 GB, free: 1.992 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/1.683, allocations: 303.5 kB / 0.8902 GB, free: 1.695 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001937/1.685, allocations: 0.696 MB / 0.8909 GB, free: 0.9961 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/1.685, allocations: 28 kB / 0.8909 GB, free: 0.9688 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008267/1.693, allocations: 6.532 MB / 0.8973 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.693, allocations: 8.062 kB / 0.8973 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009901/1.703, allocations: 5.692 MB / 0.9029 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001894/1.705, allocations: 459.5 kB / 0.9033 GB, free: 3.957 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005272/1.706, allocations: 31.98 kB / 0.9033 GB, free: 3.926 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/1.707, allocations: 107.8 kB / 0.9034 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003594/1.708, allocations: 113.1 kB / 0.9035 GB, free: 3.707 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/1.708, allocations: 51.98 kB / 0.9036 GB, free: 3.656 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005741/1.714, allocations: 2.888 MB / 0.9064 GB, free: 0.7695 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.01e-07/1.714, allocations: 0 / 0.9064 GB, free: 0.7695 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007119/1.721, allocations: 1.143 MB / 0.9075 GB, free: 15.63 MB / 0.5417 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 () * 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.009887/1.731, allocations: 6.542 MB / 0.9139 GB, free: 9.047 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01023/1.741, allocations: 5.25 MB / 0.919 GB, free: 3.805 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.741, allocations: 3.938 kB / 0.919 GB, free: 3.801 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003105/1.744, allocations: 1.775 MB / 0.9208 GB, free: 2.004 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003434/1.747, allocations: 0.5217 MB / 0.9213 GB, free: 1.504 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3767/2.124, allocations: 10.46 MB / 0.9315 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009203/2.133, allocations: 3.973 MB / 0.9354 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008024/2.142, allocations: 2.001 MB / 0.9373 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005229/2.147, allocations: 2.36 MB / 0.9396 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of SimCode: time 1.633e-06/2.147, allocations: 0 / 0.9396 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1544/2.301, allocations: 88.99 MB / 1.027 GB, free: 96.93 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/2.301, allocations: 174.7 kB / 1.027 GB, free: 96.71 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.09/7.392, allocations: 0 / 1.027 GB, free: 96.71 MB / 0.5417 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