Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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) 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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_0_0_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.0007621/0.0007621, allocations: 89.89 kB / 16.31 MB, free: 6.008 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.0008176/0.0008176, allocations: 184.8 kB / 17.21 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.2 MB / 241.2 MB, free: 5.336 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003724, allocations: 7 kB / 300.9 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1224, allocations: 50.43 MB / 351.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.05672/0.1792, allocations: 63.1 MB / 414.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2912/0.4704, allocations: 13.29 MB / 427.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01344/0.4839, allocations: 305.7 kB / 428 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01126/0.4952, allocations: 3.291 MB / 431.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02783/0.5231, allocations: 9.689 MB / 441 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004439/0.5275, allocations: 0.8072 MB / 441.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.07283/0.6004, allocations: 61.97 MB / 0.492 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01092/0.6113, allocations: 6.554 MB / 0.4984 GB, free: 6.875 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003935/0.6153, allocations: 1.662 MB / 0.5 GB, free: 5.754 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004438/0.6198, allocations: 2.531 MB / 0.5025 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009235/0.6208, allocations: 180 kB / 0.5026 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002422/0.6232, allocations: 0.9798 MB / 0.5036 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002263/0.6255, allocations: 2.172 MB / 0.5057 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001378/0.6269, allocations: 1.056 MB / 0.5067 GB, free: 460 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007346/0.6342, allocations: 7.239 MB / 0.5138 GB, free: 10.16 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.6342, allocations: 3.984 kB / 0.5138 GB, free: 10.16 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6343, allocations: 0 / 0.5138 GB, free: 10.16 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00025/0.6345, allocations: 0 / 0.5138 GB, free: 10.16 MB / 414.1 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.01158/0.6461, allocations: 5.257 MB / 0.519 GB, free: 5.289 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.6462, allocations: 12.03 kB / 0.519 GB, free: 5.277 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002062/0.6482, allocations: 0.8465 MB / 0.5198 GB, free: 4.773 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03125/0.6795, allocations: 6.14 MB / 0.5258 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008677/0.6882, allocations: 4.278 MB / 0.53 GB, free: 11.83 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001935/0.6884, allocations: 305.8 kB / 0.5303 GB, free: 11.67 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001001/0.6894, allocations: 430.6 kB / 0.5307 GB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01822/0.7077, allocations: 11.6 MB / 0.542 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001434/0.7079, allocations: 43.59 kB / 0.542 GB, free: 2.289 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004558/0.7083, allocations: 191.4 kB / 0.5422 GB, free: 2.234 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003434/0.7118, allocations: 2.088 MB / 0.5443 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02/0.7318, allocations: 9.818 MB / 0.5539 GB, free: 9.582 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2835/1.015, allocations: 45.38 MB / 0.5982 GB, free: 169.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01152/1.027, allocations: 4.245 MB / 0.6023 GB, free: 168.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003714/1.031, allocations: 2.346 MB / 0.6046 GB, free: 168.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/1.045, allocations: 9.419 MB / 0.6138 GB, free: 167.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/1.045, allocations: 54.97 kB / 0.6139 GB, free: 167.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 4.429e-06/1.045, allocations: 0 / 0.6139 GB, free: 167.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.0422/1.087, allocations: 18.23 MB / 0.6317 GB, free: 161.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/1.087, allocations: 210.7 kB / 0.6319 GB, free: 160.9 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005917/1.093, allocations: 4.694 MB / 0.6364 GB, free: 156.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002679/1.094, allocations: 58.33 kB / 0.6365 GB, free: 156.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002161/1.096, allocations: 3.639 MB / 0.6401 GB, free: 152.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006746/1.096, allocations: 0.7525 MB / 0.6408 GB, free: 152 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/1.097, allocations: 127.8 kB / 0.6409 GB, free: 151.9 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002648/1.097, allocations: 0.5744 MB / 0.6415 GB, free: 151.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002662/1.1, allocations: 2.163 MB / 0.6436 GB, free: 149.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004178/1.104, allocations: 6.014 MB / 0.6495 GB, free: 141.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003914/1.108, allocations: 3.544 MB / 0.6529 GB, free: 138.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.706e-05/1.108, allocations: 40 kB / 0.653 GB, free: 138.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.012/1.12, allocations: 8.739 MB / 0.6615 GB, free: 129.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.042e-05/1.12, allocations: 64 kB / 0.6616 GB, free: 129.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/1.12, allocations: 137 kB / 0.6617 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002516/1.122, allocations: 1.09 MB / 0.6627 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003792/1.126, allocations: 1.427 MB / 0.6641 GB, free: 126.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007861/1.134, allocations: 8.202 MB / 0.6722 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004934/1.139, allocations: 340.7 kB / 0.6725 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009984/1.14, allocations: 388 kB / 0.6728 GB, free: 117.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (756): * Single equations (assignments): 751 * 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.004648/1.145, allocations: 2.469 MB / 0.6753 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009489/1.146, allocations: 422.5 kB / 0.6757 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006244/1.152, allocations: 3.495 MB / 0.6791 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.018e-05/1.152, allocations: 20.56 kB / 0.6791 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-05/1.152, allocations: 8 kB / 0.6791 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.178e-05/1.152, allocations: 11.34 kB / 0.6791 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01723/1.169, allocations: 9.051 MB / 0.6879 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.959e-05/1.169, allocations: 0 / 0.6879 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/1.171, allocations: 303.6 kB / 0.6882 GB, free: 101.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002442/1.173, allocations: 0.8549 MB / 0.6891 GB, free: 100.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002227/1.174, allocations: 39.98 kB / 0.6891 GB, free: 100.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008015/1.182, allocations: 7.323 MB / 0.6963 GB, free: 93.13 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/1.182, allocations: 3.984 kB / 0.6963 GB, free: 93.13 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008241/1.19, allocations: 6.049 MB / 0.7022 GB, free: 87.05 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001341/1.191, allocations: 471.4 kB / 0.7026 GB, free: 86.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009739/1.192, allocations: 32 kB / 0.7027 GB, free: 86.54 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001959/1.194, allocations: 99.88 kB / 0.7027 GB, free: 86.44 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003366/1.195, allocations: 127.3 kB / 0.7029 GB, free: 86.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/1.195, allocations: 52 kB / 0.7029 GB, free: 86.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005281/1.2, allocations: 2.966 MB / 0.7058 GB, free: 83.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.8e-07/1.2, allocations: 0 / 0.7058 GB, free: 83.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00627/1.206, allocations: 1.142 MB / 0.7069 GB, free: 82.17 MB / 478.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 (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.008598/1.215, allocations: 6.714 MB / 0.7135 GB, free: 75.41 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008077/1.223, allocations: 5.515 MB / 0.7189 GB, free: 69.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/1.223, allocations: 0 / 0.7189 GB, free: 69.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002454/1.225, allocations: 1.887 MB / 0.7207 GB, free: 67.99 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004072/1.23, allocations: 0.5525 MB / 0.7213 GB, free: 67.45 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07462/1.304, allocations: 41.17 MB / 0.7615 GB, free: 22.11 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006287/1.311, allocations: 3.86 MB / 0.7652 GB, free: 18.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006016/1.317, allocations: 1.992 MB / 0.7672 GB, free: 16.21 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003474/1.32, allocations: 2.362 MB / 0.7695 GB, free: 13.85 MB / 478.1 MB Notification: Performance of SimCode: time 8.01e-07/1.32, allocations: 0 / 0.7695 GB, free: 13.85 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3363/1.656, allocations: 89.9 MB / 0.8573 GB, free: 108.7 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001339/1.657, allocations: 242.6 kB / 0.8575 GB, free: 108.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.422/6.079, allocations: 2.953 kB / 0.8575 GB, free: 108.5 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat