Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.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) 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 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_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.001338/0.001338, allocations: 95.08 kB / 16.98 MB, free: 5.941 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.001725/0.001724, allocations: 182.4 kB / 17.88 MB, free: 5.609 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.356/1.356, allocations: 223.2 MB / 241.8 MB, free: 14.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2185/0.2185, allocations: 44.23 MB / 337.1 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.000342, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1376, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.3732/0.5108, allocations: 59.57 MB / 0.5187 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03916/0.55, allocations: 13.93 MB / 0.5323 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0176/0.5676, allocations: 301.6 kB / 0.5326 GB, free: 8.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01356/0.5812, allocations: 2.997 MB / 0.5355 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03545/0.6167, allocations: 8.546 MB / 0.5438 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005808/0.6225, allocations: 0.792 MB / 0.5446 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.07824/0.7008, allocations: 48.52 MB / 0.592 GB, free: 8.383 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01089/0.7118, allocations: 6.508 MB / 0.5983 GB, free: 1.816 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00354/0.7153, allocations: 1.351 MB / 0.5997 GB, free: 472 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003273/0.7186, allocations: 1.748 MB / 0.6014 GB, free: 14.71 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008041/0.7195, allocations: 184 kB / 0.6015 GB, free: 14.53 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002562/0.722, allocations: 0.9636 MB / 0.6025 GB, free: 13.56 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002239/0.7243, allocations: 2.007 MB / 0.6044 GB, free: 11.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001437/0.7257, allocations: 1.053 MB / 0.6055 GB, free: 10.49 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009041/0.7348, allocations: 7.239 MB / 0.6125 GB, free: 3.234 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.7348, allocations: 0 / 0.6125 GB, free: 3.234 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.7349, allocations: 0 / 0.6125 GB, free: 3.234 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003541/0.7352, allocations: 0 / 0.6125 GB, free: 3.234 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.0137/0.7489, allocations: 5.37 MB / 0.6178 GB, free: 13.79 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.749, allocations: 12.03 kB / 0.6178 GB, free: 13.78 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002763/0.7518, allocations: 0.8507 MB / 0.6186 GB, free: 12.92 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04136/0.7931, allocations: 7.997 MB / 0.6264 GB, free: 4.902 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00942/0.8026, allocations: 3.88 MB / 0.6302 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000266/0.8029, allocations: 303.8 kB / 0.6305 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001629/0.8046, allocations: 435.6 kB / 0.6309 GB, free: 252 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02204/0.8266, allocations: 11.74 MB / 0.6424 GB, free: 3.766 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001484/0.8268, allocations: 47.59 kB / 0.6424 GB, free: 3.719 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000507/0.8273, allocations: 191.9 kB / 0.6426 GB, free: 3.531 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003327/0.8306, allocations: 2.093 MB / 0.6447 GB, free: 1.434 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01975/0.8504, allocations: 9.983 MB / 0.6544 GB, free: 7.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06341/0.9139, allocations: 45.54 MB / 0.6989 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/0.9247, allocations: 4.257 MB / 0.703 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.283/1.208, allocations: 9.521 MB / 0.7123 GB, free: 190.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/1.208, allocations: 53.03 kB / 0.7124 GB, free: 190.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 4.368e-06/1.208, allocations: 1.281 kB / 0.7124 GB, free: 190.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.05177/1.26, allocations: 18.55 MB / 0.7305 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.045e-05/1.26, allocations: 201 kB / 0.7307 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006015/1.266, allocations: 4.94 MB / 0.7355 GB, free: 182 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003287/1.266, allocations: 54.83 kB / 0.7356 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002262/1.268, allocations: 3.641 MB / 0.7391 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00102/1.269, allocations: 0.7578 MB / 0.7399 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/1.27, allocations: 127.8 kB / 0.74 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004131/1.27, allocations: 0.576 MB / 0.7406 GB, free: 178 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003338/1.273, allocations: 2.165 MB / 0.7427 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005421/1.279, allocations: 5.992 MB / 0.7485 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004237/1.283, allocations: 3.538 MB / 0.752 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.962e-05/1.283, allocations: 36 kB / 0.752 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01205/1.295, allocations: 8.746 MB / 0.7606 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.1e-05/1.295, allocations: 64 kB / 0.7606 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/1.296, allocations: 132.9 kB / 0.7607 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002581/1.298, allocations: 1.1 MB / 0.7618 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003833/1.302, allocations: 1.423 MB / 0.7632 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008026/1.31, allocations: 8.383 MB / 0.7714 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004949/1.315, allocations: 343.5 kB / 0.7717 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007944/1.316, allocations: 384 kB / 0.7721 GB, free: 145.3 MB / 0.5294 GB 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.004829/1.321, allocations: 2.486 MB / 0.7745 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.322, allocations: 418.5 kB / 0.7749 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005536/1.327, allocations: 3.491 MB / 0.7783 GB, free: 138.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/1.327, allocations: 20 kB / 0.7783 GB, free: 138.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/1.327, allocations: 8 kB / 0.7783 GB, free: 138.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/1.327, allocations: 10.12 kB / 0.7784 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01512/1.343, allocations: 9.078 MB / 0.7872 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/1.343, allocations: 0 / 0.7872 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/1.344, allocations: 303.5 kB / 0.7875 GB, free: 129.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002349/1.346, allocations: 0.8477 MB / 0.7883 GB, free: 128.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001606/1.347, allocations: 32 kB / 0.7884 GB, free: 128.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007345/1.354, allocations: 7.541 MB / 0.7957 GB, free: 120.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.354, allocations: 4.328 kB / 0.7957 GB, free: 120.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008473/1.362, allocations: 6.166 MB / 0.8018 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/1.365, allocations: 479.6 kB / 0.8022 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005833/1.365, allocations: 31.98 kB / 0.8022 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/1.367, allocations: 107.9 kB / 0.8024 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003465/1.367, allocations: 113.1 kB / 0.8025 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/1.367, allocations: 57.59 kB / 0.8025 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004571/1.372, allocations: 3.161 MB / 0.8056 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/1.372, allocations: 0 / 0.8056 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005987/1.378, allocations: 1.169 MB / 0.8067 GB, free: 109.4 MB / 0.5294 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.008225/1.386, allocations: 7.054 MB / 0.8136 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008131/1.394, allocations: 5.511 MB / 0.819 GB, free: 96.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/1.394, allocations: 192 / 0.819 GB, free: 96.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002322/1.396, allocations: 1.887 MB / 0.8209 GB, free: 94.88 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/1.399, allocations: 0.52 MB / 0.8214 GB, free: 94.36 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3508/1.75, allocations: 134.4 MB / 0.9526 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003964/1.754, allocations: 3.961 MB / 0.9565 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004799/1.759, allocations: 2.002 MB / 0.9585 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003011/1.762, allocations: 2.368 MB / 0.9608 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.032e-06/1.762, allocations: 0 / 0.9608 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1295/1.891, allocations: 90.82 MB / 1.049 GB, free: 57.56 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001327/1.892, allocations: 209.2 kB / 1.05 GB, free: 57.32 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.241/6.133, allocations: 4 kB / 1.05 GB, free: 57.32 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat