Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.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.GearConstraint3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",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.001093/0.001093, allocations: 177 kB / 17.06 MB, free: 5.098 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.442/1.442, allocations: 223.2 MB / 241 MB, free: 11.89 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.0009889/0.0009886, allocations: 95.36 kB / 292.1 MB, free: 10.92 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.3999/0.3999, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003783, allocations: 8 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.3991, allocations: 61.91 MB / 0.5096 GB, free: 38.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1508/0.55, allocations: 108.9 MB / 0.616 GB, free: 2.148 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/0.5504, allocations: 87.92 kB / 0.6161 GB, free: 2.066 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6251/1.176, allocations: 129.4 MB / 0.7424 GB, free: 88.41 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.316e-06/1.176, allocations: 3.438 kB / 0.7424 GB, free: 88.41 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004998/1.176, allocations: 128.8 kB / 0.7426 GB, free: 88.4 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: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.0273/1.203, allocations: 7.314 MB / 0.7497 GB, free: 84.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.728e-05/1.204, allocations: 7.406 kB / 0.7497 GB, free: 84.97 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006861/1.21, allocations: 1.08 MB / 0.7508 GB, free: 84.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03537/1.246, allocations: 9.369 MB / 0.7599 GB, free: 80.46 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02311/1.269, allocations: 8.477 MB / 0.7682 GB, free: 75.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005749/1.27, allocations: 471.4 kB / 0.7686 GB, free: 75.59 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004186/1.274, allocations: 0.619 MB / 0.7692 GB, free: 75.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03827/1.312, allocations: 15.93 MB / 0.7848 GB, free: 58.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006338/1.313, allocations: 91.14 kB / 0.7849 GB, free: 58.25 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003693/1.317, allocations: 295.9 kB / 0.7852 GB, free: 57.96 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002574/1.319, allocations: 1.475 MB / 0.7866 GB, free: 56.48 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02886/1.348, allocations: 13.92 MB / 0.8002 GB, free: 42.54 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09526/1.443, allocations: 68.99 MB / 0.8676 GB, free: 3.609 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3439/1.787, allocations: 7.201 MB / 0.8746 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0325/1.82, allocations: 17.3 MB / 0.8915 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.707e-05/1.82, allocations: 67.75 kB / 0.8916 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=289): time 7.033e-06/1.82, allocations: 0 / 0.8916 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=373): time 0.1521/1.972, allocations: 56.9 MB / 0.9471 GB, free: 94.48 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001777/1.972, allocations: 322.4 kB / 0.9474 GB, free: 94.14 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008083/1.98, allocations: 4.848 MB / 0.9522 GB, free: 92.44 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001327/1.982, allocations: 82.56 kB / 0.9523 GB, free: 92.37 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002582/1.984, allocations: 4.296 MB / 0.9564 GB, free: 89.09 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00243/1.987, allocations: 1.359 MB / 0.9578 GB, free: 88.08 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001024/1.988, allocations: 161.2 kB / 0.9579 GB, free: 87.95 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003972/1.988, allocations: 0.6517 MB / 0.9586 GB, free: 87.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006471/1.995, allocations: 4.667 MB / 0.9631 GB, free: 84.27 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009692/2.004, allocations: 8.965 MB / 0.9719 GB, free: 74.21 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009388/2.014, allocations: 6.356 MB / 0.9781 GB, free: 68.71 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001188/2.014, allocations: 44 kB / 0.9781 GB, free: 68.67 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1059) (initialization): time 0.03362/2.048, allocations: 17.79 MB / 0.9955 GB, free: 54.19 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001472/2.048, allocations: 72 kB / 0.9956 GB, free: 54.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002304/2.048, allocations: 148 kB / 0.9957 GB, free: 53.97 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01343/2.062, allocations: 4.766 MB / 1 GB, free: 49.22 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007399/2.069, allocations: 1.934 MB / 1.002 GB, free: 47.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03181/2.101, allocations: 26.18 MB / 1.028 GB, free: 20.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008107/2.109, allocations: 0.5947 MB / 1.028 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002122/2.111, allocations: 471.9 kB / 1.029 GB, free: 19.66 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 59 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (956): * Single equations (assignments): 950 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008882/2.12, allocations: 3.075 MB / 1.032 GB, free: 16.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002113/2.122, allocations: 0.5245 MB / 1.032 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02748/2.15, allocations: 12.67 MB / 1.045 GB, free: 3.32 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.397e-05/2.15, allocations: 41.23 kB / 1.045 GB, free: 3.281 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.753e-05/2.15, allocations: 16 kB / 1.045 GB, free: 3.266 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001019/2.15, allocations: 19.94 kB / 1.045 GB, free: 3.246 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05279/2.203, allocations: 22.4 MB / 1.067 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.841e-05/2.203, allocations: 7.938 kB / 1.067 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004096/2.207, allocations: 0.6436 MB / 1.067 GB, free: 12.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3382/2.545, allocations: 4.531 MB / 1.072 GB, free: 129.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001166/2.547, allocations: 66.8 kB / 1.072 GB, free: 129.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03446/2.581, allocations: 25.45 MB / 1.097 GB, free: 125.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/2.581, allocations: 1.406 kB / 1.097 GB, free: 125.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03881/2.62, allocations: 18.96 MB / 1.115 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001809/2.622, allocations: 0.5552 MB / 1.116 GB, free: 119.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002521/2.624, allocations: 61.14 kB / 1.116 GB, free: 119.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004863/2.629, allocations: 344.1 kB / 1.116 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001742/2.631, allocations: 231.7 kB / 1.116 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008695/2.632, allocations: 96.33 kB / 1.116 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007708/2.64, allocations: 3.445 MB / 1.12 GB, free: 118.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.02e-07/2.64, allocations: 3.969 kB / 1.12 GB, free: 118.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01339/2.653, allocations: 1.831 MB / 1.122 GB, free: 117.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (283): * Single equations (assignments): 277 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03762/2.691, allocations: 19.82 MB / 1.141 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02221/2.713, allocations: 12.28 MB / 1.153 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/2.713, allocations: 2.594 kB / 1.153 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01211/2.725, allocations: 5.889 MB / 1.159 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0056/2.731, allocations: 0.6882 MB / 1.159 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4617/3.192, allocations: 169.6 MB / 1.325 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01456/3.207, allocations: 4.936 MB / 1.33 GB, free: 115.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01013/3.217, allocations: 2.795 MB / 1.333 GB, free: 115.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007284/3.225, allocations: 3.098 MB / 1.336 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.082e-06/3.225, allocations: 0 / 1.336 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2689/3.494, allocations: 145.5 MB / 1.478 GB, free: 6.898 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/3.494, allocations: 203.8 kB / 1.478 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.912/10.41, allocations: 7.734 kB / 1.478 GB, free: 6.656 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat