Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 94.97 kB / 16.95 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 186.1 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004955/0.0004956, allocations: 12 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09715/0.09766, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2728/0.3705, allocations: 63.66 MB / 392.1 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03585/0.4064, allocations: 13.41 MB / 405.5 MB, free: 7.566 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01691/0.4234, allocations: 303 kB / 405.8 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0115/0.4349, allocations: 3.307 MB / 409.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02967/0.4647, allocations: 9.74 MB / 418.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004982/0.4697, allocations: 0.8078 MB / 419.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04248/0.5122, allocations: 34.98 MB / 454.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01167/0.5239, allocations: 6.622 MB / 461.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004079/0.528, allocations: 1.724 MB / 463 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004667/0.5327, allocations: 2.64 MB / 465.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001302/0.5341, allocations: 196 kB / 465.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003166/0.5373, allocations: 0.9792 MB / 466.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003519/0.5408, allocations: 2.26 MB / 469.1 MB, free: 9.867 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00258/0.5434, allocations: 1.1 MB / 470.2 MB, free: 8.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01082/0.5543, allocations: 7.552 MB / 477.7 MB, free: 1.188 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.5543, allocations: 0 / 477.7 MB, free: 1.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.5543, allocations: 0 / 477.7 MB, free: 1.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003925/0.5547, allocations: 4 kB / 477.7 MB, free: 1.184 MB / 366.1 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.01434/0.5691, allocations: 5.434 MB / 483.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.5692, allocations: 12.03 kB / 483.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003095/0.5723, allocations: 0.8841 MB / 484.1 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03362/0.6059, allocations: 6.182 MB / 490.2 MB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01061/0.6166, allocations: 4.661 MB / 494.9 MB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003614/0.617, allocations: 316.1 kB / 495.2 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001987/0.619, allocations: 439.6 kB / 495.6 MB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02923/0.6482, allocations: 12.1 MB / 0.4958 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004227/0.6487, allocations: 59.48 kB / 0.4959 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001639/0.6504, allocations: 195.8 kB / 0.4961 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003738/0.6542, allocations: 2.21 MB / 0.4982 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02114/0.6753, allocations: 10.26 MB / 0.5083 GB, free: 5.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2927/0.9681, allocations: 47.01 MB / 0.5542 GB, free: 137.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01216/0.9803, allocations: 4.468 MB / 0.5585 GB, free: 136.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003463/0.9838, allocations: 2.51 MB / 0.561 GB, free: 136.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01518/0.999, allocations: 10.02 MB / 0.5708 GB, free: 132.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.9991, allocations: 52.09 kB / 0.5708 GB, free: 132.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=192): time 4.739e-06/0.9991, allocations: 0 / 0.5708 GB, free: 132.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=218): time 0.04607/1.045, allocations: 19.52 MB / 0.5899 GB, free: 121.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.05e-05/1.045, allocations: 201.2 kB / 0.5901 GB, free: 120.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00898/1.054, allocations: 4.817 MB / 0.5948 GB, free: 116 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005932/1.055, allocations: 57.7 kB / 0.5948 GB, free: 116 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003165/1.058, allocations: 3.763 MB / 0.5985 GB, free: 112.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001371/1.06, allocations: 0.8274 MB / 0.5993 GB, free: 111.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000426/1.06, allocations: 132 kB / 0.5994 GB, free: 111.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003712/1.06, allocations: 0.579 MB / 0.6 GB, free: 110.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005117/1.066, allocations: 2.337 MB / 0.6023 GB, free: 108.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007205/1.073, allocations: 6.292 MB / 0.6084 GB, free: 100.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00741/1.08, allocations: 3.751 MB / 0.6121 GB, free: 96.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.2e-05/1.08, allocations: 40 kB / 0.6121 GB, free: 96.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.02401/1.104, allocations: 9.207 MB / 0.6211 GB, free: 87.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000124/1.105, allocations: 64 kB / 0.6212 GB, free: 87.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001802/1.105, allocations: 140 kB / 0.6213 GB, free: 87.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003834/1.109, allocations: 1.107 MB / 0.6224 GB, free: 86.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006882/1.116, allocations: 1.501 MB / 0.6239 GB, free: 84.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/1.129, allocations: 8.203 MB / 0.6319 GB, free: 76.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006674/1.135, allocations: 359.5 kB / 0.6322 GB, free: 75.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001216/1.137, allocations: 400 kB / 0.6326 GB, free: 75.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * 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 (794): * Single equations (assignments): 789 * 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.005431/1.142, allocations: 2.577 MB / 0.6351 GB, free: 72.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.143, allocations: 430.4 kB / 0.6355 GB, free: 72.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007105/1.15, allocations: 3.885 MB / 0.6393 GB, free: 68.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.615e-05/1.15, allocations: 24 kB / 0.6393 GB, free: 68.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.189e-05/1.15, allocations: 8 kB / 0.6394 GB, free: 68.56 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.72e-05/1.15, allocations: 7.969 kB / 0.6394 GB, free: 68.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01764/1.168, allocations: 9.77 MB / 0.6489 GB, free: 58.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/1.168, allocations: 4 kB / 0.6489 GB, free: 58.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/1.17, allocations: 347.5 kB / 0.6492 GB, free: 58.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002376/1.172, allocations: 0.8545 MB / 0.6501 GB, free: 57.56 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000288/1.172, allocations: 39.59 kB / 0.6501 GB, free: 57.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007552/1.18, allocations: 7.339 MB / 0.6573 GB, free: 49.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/1.18, allocations: 7.984 kB / 0.6573 GB, free: 49.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00989/1.19, allocations: 6.645 MB / 0.6638 GB, free: 43.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002198/1.192, allocations: 0.7648 MB / 0.6645 GB, free: 42.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009792/1.193, allocations: 32 kB / 0.6645 GB, free: 42.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002015/1.195, allocations: 123.1 kB / 0.6647 GB, free: 42.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003852/1.196, allocations: 125.8 kB / 0.6648 GB, free: 42.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001683/1.196, allocations: 61.08 kB / 0.6648 GB, free: 42.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005409/1.201, allocations: 3.043 MB / 0.6678 GB, free: 39.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.62e-07/1.201, allocations: 0 / 0.6678 GB, free: 39.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006993/1.208, allocations: 1.207 MB / 0.669 GB, free: 37.88 MB / 446.1 MB 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.01025/1.219, allocations: 7.306 MB / 0.6761 GB, free: 30.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009473/1.228, allocations: 5.906 MB / 0.6819 GB, free: 24.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.228, allocations: 4 kB / 0.6819 GB, free: 24.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003474/1.232, allocations: 2.078 MB / 0.6839 GB, free: 22.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005179/1.237, allocations: 0.5686 MB / 0.6845 GB, free: 21.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3033/1.54, allocations: 43.38 MB / 0.7269 GB, free: 166 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006652/1.547, allocations: 3.997 MB / 0.7308 GB, free: 165.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005391/1.552, allocations: 2.098 MB / 0.7328 GB, free: 165.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003333/1.556, allocations: 2.461 MB / 0.7352 GB, free: 163.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/1.556, allocations: 3.969 kB / 0.7352 GB, free: 163.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1229/1.679, allocations: 93.57 MB / 0.8266 GB, free: 79 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/1.679, allocations: 235 kB / 0.8268 GB, free: 78.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.927/6.606, allocations: 8.062 kB / 0.8268 GB, free: 78.75 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat