Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008835/0.0008835, allocations: 100.1 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 191.1 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002674/0.0002676, allocations: 4 kB / 306.8 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2695/0.3826, allocations: 63.1 MB / 421.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03274/0.4154, allocations: 13.34 MB / 434.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01627/0.4317, allocations: 307.2 kB / 435.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01138/0.4431, allocations: 3.289 MB / 438.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02788/0.4711, allocations: 9.661 MB / 448 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004741/0.4758, allocations: 0.7996 MB / 448.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.08053/0.5564, allocations: 62.1 MB / 0.4989 GB, free: 2.883 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01105/0.5675, allocations: 6.546 MB / 0.5053 GB, free: 12.28 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004012/0.5715, allocations: 1.662 MB / 0.5069 GB, free: 10.61 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005111/0.5767, allocations: 2.524 MB / 0.5094 GB, free: 8.082 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00129/0.578, allocations: 180 kB / 0.5096 GB, free: 7.906 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002959/0.581, allocations: 0.9714 MB / 0.5105 GB, free: 6.934 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003168/0.5841, allocations: 2.17 MB / 0.5126 GB, free: 4.758 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002095/0.5863, allocations: 1.057 MB / 0.5137 GB, free: 3.691 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008231/0.5945, allocations: 7.24 MB / 0.5207 GB, free: 12.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.5945, allocations: 0 / 0.5207 GB, free: 12.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5946, allocations: 0 / 0.5207 GB, free: 12.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003887/0.5949, allocations: 0 / 0.5207 GB, free: 12.43 MB / 446.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.01376/0.6087, allocations: 5.283 MB / 0.5259 GB, free: 7.082 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.6088, allocations: 8.031 kB / 0.5259 GB, free: 7.074 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002523/0.6113, allocations: 0.8429 MB / 0.5267 GB, free: 6.223 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03211/0.6434, allocations: 6.175 MB / 0.5328 GB, free: 32 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2666/0.9101, allocations: 4.059 MB / 0.5367 GB, free: 85.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000301/0.9105, allocations: 305.5 kB / 0.537 GB, free: 85.15 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001088/0.9116, allocations: 434.2 kB / 0.5374 GB, free: 85.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02304/0.9346, allocations: 11.6 MB / 0.5488 GB, free: 83.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000188/0.9349, allocations: 49.56 kB / 0.5488 GB, free: 83.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005559/0.9354, allocations: 188.3 kB / 0.549 GB, free: 83.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003044/0.9385, allocations: 2.088 MB / 0.551 GB, free: 83.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01861/0.9571, allocations: 9.818 MB / 0.5606 GB, free: 83.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04061/0.9978, allocations: 45.37 MB / 0.6049 GB, free: 47.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008328/1.006, allocations: 4.251 MB / 0.6091 GB, free: 44.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002349/1.008, allocations: 2.344 MB / 0.6114 GB, free: 42.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/1.019, allocations: 9.418 MB / 0.6206 GB, free: 33.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/1.019, allocations: 49.06 kB / 0.6206 GB, free: 33.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 3.266e-06/1.019, allocations: 0 / 0.6206 GB, free: 33.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.03926/1.058, allocations: 18.24 MB / 0.6384 GB, free: 15.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/1.058, allocations: 207.7 kB / 0.6386 GB, free: 15.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005068/1.063, allocations: 4.691 MB / 0.6432 GB, free: 10.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002107/1.064, allocations: 49.7 kB / 0.6432 GB, free: 10.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001668/1.065, allocations: 3.641 MB / 0.6468 GB, free: 6.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005392/1.066, allocations: 0.7636 MB / 0.6475 GB, free: 6.172 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/1.066, allocations: 124 kB / 0.6477 GB, free: 6.051 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002337/1.066, allocations: 0.5666 MB / 0.6482 GB, free: 5.477 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002519/1.069, allocations: 2.175 MB / 0.6503 GB, free: 3.297 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005253/1.074, allocations: 6.007 MB / 0.6562 GB, free: 11.44 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005608/1.08, allocations: 3.545 MB / 0.6597 GB, free: 8.023 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-05/1.08, allocations: 36 kB / 0.6597 GB, free: 7.988 MB / 462.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01576/1.096, allocations: 8.744 MB / 0.6682 GB, free: 56 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/1.096, allocations: 61.03 kB / 0.6683 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001372/1.096, allocations: 136 kB / 0.6684 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00273/1.099, allocations: 1.089 MB / 0.6695 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00415/1.103, allocations: 1.434 MB / 0.6709 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009417/1.112, allocations: 8.199 MB / 0.6789 GB, free: 5.082 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004376/1.117, allocations: 343.5 kB / 0.6792 GB, free: 4.746 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007068/1.117, allocations: 384 kB / 0.6796 GB, free: 4.371 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.004106/1.122, allocations: 2.471 MB / 0.682 GB, free: 2.016 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008562/1.122, allocations: 418.6 kB / 0.6824 GB, free: 1.602 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006275/1.129, allocations: 3.501 MB / 0.6858 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.314e-05/1.129, allocations: 24 kB / 0.6858 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/1.129, allocations: 4 kB / 0.6859 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/1.129, allocations: 14.41 kB / 0.6859 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01462/1.143, allocations: 9.039 MB / 0.6947 GB, free: 5.035 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-05/1.143, allocations: 4 kB / 0.6947 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/1.145, allocations: 303.5 kB / 0.695 GB, free: 4.746 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002391/1.147, allocations: 0.8522 MB / 0.6958 GB, free: 3.891 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/1.147, allocations: 35.98 kB / 0.6959 GB, free: 3.855 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008492/1.156, allocations: 7.336 MB / 0.703 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/1.156, allocations: 3.188 kB / 0.703 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008699/1.165, allocations: 6.047 MB / 0.7089 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001311/1.166, allocations: 471.5 kB / 0.7094 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004152/1.166, allocations: 32 kB / 0.7094 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/1.168, allocations: 95.89 kB / 0.7095 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003296/1.168, allocations: 123.6 kB / 0.7096 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/1.168, allocations: 55.83 kB / 0.7097 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004454/1.173, allocations: 2.962 MB / 0.7126 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.173, allocations: 1.969 kB / 0.7126 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00522/1.178, allocations: 1.14 MB / 0.7137 GB, free: 1.344 MB / 0.4981 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 () * 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.2506/1.428, allocations: 6.718 MB / 0.7202 GB, free: 193.6 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009083/1.438, allocations: 5.513 MB / 0.7256 GB, free: 191.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/1.438, allocations: 1.156 kB / 0.7256 GB, free: 191.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002938/1.441, allocations: 1.881 MB / 0.7275 GB, free: 191.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003148/1.444, allocations: 0.5457 MB / 0.728 GB, free: 190.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06357/1.507, allocations: 41.17 MB / 0.7682 GB, free: 162.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003592/1.511, allocations: 3.86 MB / 0.772 GB, free: 159.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00433/1.515, allocations: 1.999 MB / 0.7739 GB, free: 157.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/1.518, allocations: 2.358 MB / 0.7762 GB, free: 155.1 MB / 0.4981 GB Notification: Performance of SimCode: time 8.92e-07/1.518, allocations: 0 / 0.7762 GB, free: 155.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1159/1.634, allocations: 89.9 MB / 0.864 GB, free: 65.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/1.634, allocations: 242.8 kB / 0.8642 GB, free: 65.45 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.387/6.021, allocations: 0 / 0.8642 GB, free: 65.45 MB / 0.4981 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat