Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_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.001111/0.001111, allocations: 97.17 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 203.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2203/0.2203, allocations: 45.91 MB / 344 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004646/0.0004647, allocations: 8 kB / 418.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1551, allocations: 63.46 MB / 481.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.3624/0.5175, allocations: 59.59 MB / 0.5284 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03672/0.5542, allocations: 13.95 MB / 0.5421 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01852/0.5728, allocations: 300.5 kB / 0.5423 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01128/0.5841, allocations: 2.992 MB / 0.5453 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03315/0.6173, allocations: 8.536 MB / 0.5536 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005082/0.6224, allocations: 0.7909 MB / 0.5544 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.06735/0.6898, allocations: 48.58 MB / 0.6018 GB, free: 12.12 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009984/0.6998, allocations: 6.502 MB / 0.6082 GB, free: 5.559 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002728/0.7026, allocations: 1.363 MB / 0.6095 GB, free: 4.191 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00272/0.7053, allocations: 1.748 MB / 0.6112 GB, free: 2.438 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005572/0.7059, allocations: 180 kB / 0.6114 GB, free: 2.262 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001983/0.7079, allocations: 0.9441 MB / 0.6123 GB, free: 1.316 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001894/0.7098, allocations: 2.015 MB / 0.6143 GB, free: 15.3 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001239/0.7111, allocations: 1.049 MB / 0.6153 GB, free: 14.23 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008078/0.7191, allocations: 7.234 MB / 0.6224 GB, free: 6.984 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.7192, allocations: 0 / 0.6224 GB, free: 6.984 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.7192, allocations: 0 / 0.6224 GB, free: 6.984 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002491/0.7194, allocations: 4 kB / 0.6224 GB, free: 6.98 MB / 462.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.01293/0.7324, allocations: 5.39 MB / 0.6276 GB, free: 1.52 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.7324, allocations: 8.031 kB / 0.6276 GB, free: 1.512 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002496/0.7349, allocations: 0.8585 MB / 0.6285 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04142/0.7764, allocations: 8.032 MB / 0.6363 GB, free: 8.594 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01156/0.788, allocations: 3.868 MB / 0.6401 GB, free: 4.672 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002605/0.7883, allocations: 307.8 kB / 0.6404 GB, free: 4.371 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001052/0.7894, allocations: 427.6 kB / 0.6408 GB, free: 3.953 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02129/0.8107, allocations: 11.75 MB / 0.6523 GB, free: 7.461 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.8109, allocations: 51.59 kB / 0.6523 GB, free: 7.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004869/0.8114, allocations: 183.9 kB / 0.6525 GB, free: 7.23 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003342/0.8147, allocations: 2.089 MB / 0.6545 GB, free: 5.137 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0201/0.8348, allocations: 9.987 MB / 0.6643 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.422/1.257, allocations: 45.53 MB / 0.7087 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/1.269, allocations: 4.253 MB / 0.7129 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01836/1.287, allocations: 9.542 MB / 0.7222 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/1.287, allocations: 55.14 kB / 0.7223 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 5.6e-06/1.287, allocations: 0 / 0.7223 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.04652/1.334, allocations: 18.54 MB / 0.7404 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.523e-05/1.334, allocations: 204.7 kB / 0.7406 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007628/1.341, allocations: 4.944 MB / 0.7454 GB, free: 145 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005727/1.342, allocations: 55.48 kB / 0.7454 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002614/1.345, allocations: 3.63 MB / 0.749 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001167/1.346, allocations: 0.7586 MB / 0.7497 GB, free: 141 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/1.346, allocations: 133.3 kB / 0.7499 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002608/1.346, allocations: 0.5666 MB / 0.7504 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002622/1.349, allocations: 2.171 MB / 0.7525 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003964/1.353, allocations: 5.996 MB / 0.7584 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004076/1.357, allocations: 3.531 MB / 0.7618 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-05/1.357, allocations: 36 kB / 0.7619 GB, free: 127.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01312/1.37, allocations: 8.748 MB / 0.7704 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.827e-05/1.37, allocations: 66.34 kB / 0.7705 GB, free: 118.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001226/1.37, allocations: 132 kB / 0.7706 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002701/1.373, allocations: 1.095 MB / 0.7717 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004289/1.377, allocations: 1.431 MB / 0.7731 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008646/1.386, allocations: 8.389 MB / 0.7813 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005914/1.392, allocations: 348.8 kB / 0.7816 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/1.393, allocations: 384 kB / 0.782 GB, free: 106.4 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.004327/1.398, allocations: 2.483 MB / 0.7844 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009042/1.399, allocations: 414.7 kB / 0.7848 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005433/1.404, allocations: 3.491 MB / 0.7882 GB, free: 100 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.033e-05/1.404, allocations: 24 kB / 0.7882 GB, free: 99.98 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/1.404, allocations: 8 kB / 0.7882 GB, free: 99.98 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/1.404, allocations: 7.969 kB / 0.7882 GB, free: 99.97 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01447/1.419, allocations: 9.064 MB / 0.7971 GB, free: 90.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/1.419, allocations: 4 kB / 0.7971 GB, free: 90.87 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/1.42, allocations: 311.5 kB / 0.7974 GB, free: 90.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002359/1.422, allocations: 0.8442 MB / 0.7982 GB, free: 89.72 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/1.422, allocations: 39.98 kB / 0.7982 GB, free: 89.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007589/1.43, allocations: 7.53 MB / 0.8056 GB, free: 81.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.43, allocations: 3.938 kB / 0.8056 GB, free: 81.88 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008106/1.438, allocations: 6.165 MB / 0.8116 GB, free: 75.64 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/1.44, allocations: 475.5 kB / 0.8121 GB, free: 75.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005176/1.44, allocations: 37.17 kB / 0.8121 GB, free: 75.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/1.442, allocations: 107.8 kB / 0.8122 GB, free: 75.02 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003339/1.442, allocations: 118.5 kB / 0.8123 GB, free: 74.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/1.442, allocations: 51.98 kB / 0.8124 GB, free: 74.85 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004157/1.446, allocations: 3.157 MB / 0.8155 GB, free: 71.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.41e-07/1.446, allocations: 7.938 kB / 0.8155 GB, free: 71.69 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005963/1.452, allocations: 1.164 MB / 0.8166 GB, free: 70.54 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.008137/1.461, allocations: 7.047 MB / 0.8235 GB, free: 63.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008131/1.469, allocations: 5.513 MB / 0.8289 GB, free: 57.92 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/1.469, allocations: 4 kB / 0.8289 GB, free: 57.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002552/1.471, allocations: 1.875 MB / 0.8307 GB, free: 56.02 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/1.474, allocations: 0.5293 MB / 0.8312 GB, free: 55.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3559/1.83, allocations: 134.4 MB / 0.9625 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006038/1.836, allocations: 3.968 MB / 0.9663 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005822/1.842, allocations: 2.003 MB / 0.9683 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00362/1.846, allocations: 2.365 MB / 0.9706 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.373e-06/1.846, allocations: 0 / 0.9706 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1237/1.969, allocations: 90.71 MB / 1.059 GB, free: 76.19 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/1.97, allocations: 215 kB / 1.059 GB, free: 75.95 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.564/6.533, allocations: 0 / 1.059 GB, free: 75.95 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat