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.001098/0.001099, allocations: 94.56 kB / 16.3 MB, free: 5.996 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.001139/0.001139, allocations: 184.4 kB / 17.2 MB, free: 5.914 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.396/1.396, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002794, allocations: 5.531 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.05285/0.1739, allocations: 59.55 MB / 410.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03161/0.2055, allocations: 13.9 MB / 424.7 MB, free: 2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01349/0.2191, allocations: 299.2 kB / 425 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2473/0.4664, allocations: 2.995 MB / 428 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0297/0.4961, allocations: 8.543 MB / 436.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004723/0.5009, allocations: 0.7994 MB / 437.3 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.06869/0.5696, allocations: 48.51 MB / 485.8 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01036/0.58, allocations: 6.502 MB / 492.3 MB, free: 8.305 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00332/0.5834, allocations: 1.348 MB / 493.7 MB, free: 7.438 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003191/0.5866, allocations: 1.753 MB / 495.4 MB, free: 6.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009537/0.5876, allocations: 180 kB / 495.6 MB, free: 6.051 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00254/0.5901, allocations: 0.9618 MB / 496.6 MB, free: 5.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002517/0.5926, allocations: 2.015 MB / 498.6 MB, free: 3.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001571/0.5942, allocations: 1.051 MB / 499.6 MB, free: 3.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00862/0.6029, allocations: 7.241 MB / 0.495 GB, free: 13.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.6029, allocations: 0 / 0.495 GB, free: 13.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.6029, allocations: 3.844 kB / 0.495 GB, free: 13.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002931/0.6032, allocations: 4 kB / 0.495 GB, free: 13.2 MB / 398.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.01303/0.6163, allocations: 5.359 MB / 0.5002 GB, free: 8.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.99e-05/0.6163, allocations: 12.02 kB / 0.5002 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002868/0.6192, allocations: 0.8487 MB / 0.5011 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04273/0.662, allocations: 8.001 MB / 0.5089 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009606/0.6716, allocations: 3.877 MB / 0.5127 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002707/0.672, allocations: 301.8 kB / 0.513 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00187/0.6738, allocations: 434.1 kB / 0.5134 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02408/0.6979, allocations: 11.74 MB / 0.5248 GB, free: 4.125 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002728/0.6983, allocations: 49.09 kB / 0.5249 GB, free: 4.098 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00149/0.6998, allocations: 191 kB / 0.5251 GB, free: 4.043 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003892/0.7037, allocations: 2.083 MB / 0.5271 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0219/0.7256, allocations: 9.99 MB / 0.5369 GB, free: 11.47 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06573/0.7914, allocations: 45.54 MB / 0.5813 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01152/0.8029, allocations: 4.263 MB / 0.5855 GB, free: 10.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02013/0.8231, allocations: 9.518 MB / 0.5948 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.859e-05/0.8232, allocations: 53.53 kB / 0.5948 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 6.101e-06/0.8232, allocations: 0 / 0.5948 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.2507/1.074, allocations: 18.54 MB / 0.6129 GB, free: 176.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.556e-05/1.074, allocations: 200.3 kB / 0.6131 GB, free: 176.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005761/1.08, allocations: 4.945 MB / 0.618 GB, free: 175.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003413/1.08, allocations: 54.12 kB / 0.618 GB, free: 175.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/1.082, allocations: 3.632 MB / 0.6216 GB, free: 172.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007268/1.083, allocations: 0.7551 MB / 0.6223 GB, free: 172.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002173/1.083, allocations: 130.7 kB / 0.6224 GB, free: 172 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002414/1.083, allocations: 0.566 MB / 0.623 GB, free: 171.6 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002613/1.086, allocations: 2.171 MB / 0.6251 GB, free: 170.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003956/1.09, allocations: 5.984 MB / 0.6309 GB, free: 164.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003997/1.094, allocations: 3.544 MB / 0.6344 GB, free: 161.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.507e-05/1.094, allocations: 40 kB / 0.6344 GB, free: 161.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01409/1.108, allocations: 8.75 MB / 0.643 GB, free: 152.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.665e-05/1.108, allocations: 60 kB / 0.643 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001028/1.108, allocations: 136 kB / 0.6432 GB, free: 152.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002574/1.111, allocations: 1.09 MB / 0.6442 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003809/1.115, allocations: 1.436 MB / 0.6456 GB, free: 149.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008013/1.123, allocations: 8.389 MB / 0.6538 GB, free: 141.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005059/1.128, allocations: 349.5 kB / 0.6542 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006032/1.128, allocations: 384 kB / 0.6545 GB, free: 140.5 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.00368/1.132, allocations: 2.479 MB / 0.657 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006771/1.133, allocations: 414.7 kB / 0.6573 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006771/1.14, allocations: 3.492 MB / 0.6608 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.727e-05/1.14, allocations: 29.72 kB / 0.6608 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.925e-05/1.14, allocations: 7.953 kB / 0.6608 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.883e-05/1.14, allocations: 11.97 kB / 0.6608 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02202/1.162, allocations: 9.059 MB / 0.6697 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.427e-05/1.162, allocations: 3.938 kB / 0.6697 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002156/1.164, allocations: 303.6 kB / 0.6699 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003765/1.168, allocations: 0.8467 MB / 0.6708 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003196/1.168, allocations: 41.39 kB / 0.6708 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01251/1.181, allocations: 7.534 MB / 0.6782 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.181, allocations: 0 / 0.6782 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/1.193, allocations: 6.173 MB / 0.6842 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001759/1.195, allocations: 471.6 kB / 0.6846 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008664/1.196, allocations: 32 kB / 0.6847 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002482/1.198, allocations: 103.9 kB / 0.6848 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004363/1.199, allocations: 125.1 kB / 0.6849 GB, free: 109 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/1.199, allocations: 53.08 kB / 0.6849 GB, free: 109 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00657/1.206, allocations: 3.157 MB / 0.688 GB, free: 105.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.206, allocations: 0 / 0.688 GB, free: 105.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009466/1.215, allocations: 1.167 MB / 0.6892 GB, free: 104.7 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.01222/1.228, allocations: 7.052 MB / 0.6961 GB, free: 97.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01109/1.239, allocations: 5.513 MB / 0.7014 GB, free: 92.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.239, allocations: 0 / 0.7014 GB, free: 92.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003739/1.242, allocations: 1.888 MB / 0.7033 GB, free: 90.14 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003574/1.246, allocations: 0.5249 MB / 0.7038 GB, free: 89.62 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2931/1.539, allocations: 134.4 MB / 0.835 GB, free: 132.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004094/1.543, allocations: 3.964 MB / 0.8389 GB, free: 131.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004521/1.548, allocations: 2.003 MB / 0.8409 GB, free: 131.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002769/1.551, allocations: 2.368 MB / 0.8432 GB, free: 130 MB / 478.1 MB Notification: Performance of SimCode: time 8.31e-07/1.551, allocations: 0 / 0.8432 GB, free: 130 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1158/1.666, allocations: 90.78 MB / 0.9318 GB, free: 41.88 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/1.667, allocations: 248.7 kB / 0.9321 GB, free: 41.62 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.537/6.204, allocations: 0 / 0.9321 GB, free: 41.62 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