Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008926/0.0008925, allocations: 89.61 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1818/0.1818, allocations: 45.14 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.991e-05/4.019e-05, allocations: 0 / 460.5 MB, free: 69.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09076/0.09082, allocations: 63.25 MB / 0.5115 GB, free: 6.691 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3522/0.4431, allocations: 109.8 MB / 0.6186 GB, free: 396 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.4434, allocations: 84.77 kB / 0.6187 GB, free: 352 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3097/0.7531, allocations: 133 MB / 0.7486 GB, free: 3.109 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.813e-06/0.7532, allocations: 0 / 0.7486 GB, free: 3.109 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004425/0.7536, allocations: 132 kB / 0.7488 GB, free: 2.98 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.2643/1.018, allocations: 6.813 MB / 0.7554 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/1.018, allocations: 14.55 kB / 0.7554 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004989/1.023, allocations: 1.076 MB / 0.7565 GB, free: 107 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03667/1.06, allocations: 9.445 MB / 0.7657 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01984/1.08, allocations: 7.673 MB / 0.7732 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004611/1.08, allocations: 466.2 kB / 0.7737 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002899/1.083, allocations: 0.6244 MB / 0.7743 GB, free: 106 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02585/1.109, allocations: 15.78 MB / 0.7897 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001955/1.109, allocations: 88.17 kB / 0.7898 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007732/1.11, allocations: 294.2 kB / 0.79 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00164/1.111, allocations: 1.464 MB / 0.7915 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02483/1.136, allocations: 13.67 MB / 0.8048 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07231/1.209, allocations: 69.01 MB / 0.8722 GB, free: 55.38 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01596/1.225, allocations: 7.125 MB / 0.8792 GB, free: 51.44 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004957/1.23, allocations: 5.083 MB / 0.8841 GB, free: 46.77 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02091/1.251, allocations: 17.29 MB / 0.901 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/1.251, allocations: 71.73 kB / 0.9011 GB, free: 31.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=289): time 4.739e-06/1.251, allocations: 0 / 0.9011 GB, free: 31.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=373): time 0.122/1.373, allocations: 48.54 MB / 0.9485 GB, free: 4.219 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001619/1.373, allocations: 329.2 kB / 0.9488 GB, free: 3.828 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3/1.673, allocations: 4.792 MB / 0.9535 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001312/1.674, allocations: 80.17 kB / 0.9536 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.003128/1.677, allocations: 4.291 MB / 0.9577 GB, free: 116.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002214/1.68, allocations: 1.363 MB / 0.9591 GB, free: 115.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007451/1.68, allocations: 160.1 kB / 0.9592 GB, free: 115.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0004926/1.681, allocations: 0.6488 MB / 0.9599 GB, free: 115 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0072/1.688, allocations: 4.56 MB / 0.9643 GB, free: 115 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01074/1.699, allocations: 8.853 MB / 0.973 GB, free: 109.5 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/1.71, allocations: 6.296 MB / 0.9791 GB, free: 109.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000205/1.71, allocations: 41.59 kB / 0.9791 GB, free: 109.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1059) (initialization): time 0.03393/1.744, allocations: 17.57 MB / 0.9963 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/1.744, allocations: 66.25 kB / 0.9964 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/1.745, allocations: 149.6 kB / 0.9965 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0127/1.757, allocations: 4.765 MB / 1.001 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00757/1.765, allocations: 1.925 MB / 1.003 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03068/1.796, allocations: 25.35 MB / 1.028 GB, free: 97.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009228/1.805, allocations: 0.5873 MB / 1.028 GB, free: 97.01 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00268/1.808, allocations: 475.9 kB / 1.029 GB, free: 96.95 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 59 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (956): * Single equations (assignments): 950 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003933/1.812, allocations: 0.7168 MB / 1.03 GB, free: 96.37 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002033/1.814, allocations: 0.5299 MB / 1.03 GB, free: 96.08 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02561/1.839, allocations: 12.52 MB / 1.042 GB, free: 91.91 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-05/1.839, allocations: 35.69 kB / 1.042 GB, free: 91.91 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-05/1.839, allocations: 19.5 kB / 1.042 GB, free: 91.91 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-05/1.839, allocations: 18 kB / 1.042 GB, free: 91.91 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04524/1.885, allocations: 22.27 MB / 1.064 GB, free: 81.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.487e-05/1.885, allocations: 0 / 1.064 GB, free: 81.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003406/1.888, allocations: 0.6431 MB / 1.065 GB, free: 81.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01167/1.9, allocations: 4.522 MB / 1.069 GB, free: 78.41 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008126/1.901, allocations: 70.08 kB / 1.069 GB, free: 78.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02923/1.93, allocations: 24.61 MB / 1.093 GB, free: 57.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.93, allocations: 0 / 1.093 GB, free: 57.08 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03099/1.961, allocations: 18.73 MB / 1.112 GB, free: 40.76 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001931/1.963, allocations: 0.5527 MB / 1.112 GB, free: 40.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002147/1.965, allocations: 59.98 kB / 1.112 GB, free: 40.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004851/1.97, allocations: 348.9 kB / 1.112 GB, free: 39.79 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001552/1.972, allocations: 230.6 kB / 1.113 GB, free: 39.56 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007758/1.972, allocations: 95.98 kB / 1.113 GB, free: 39.46 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006667/1.979, allocations: 3.398 MB / 1.116 GB, free: 36.09 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.12e-07/1.979, allocations: 0 / 1.116 GB, free: 36.09 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0104/1.99, allocations: 1.845 MB / 1.118 GB, free: 34.26 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (283): * Single equations (assignments): 277 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03242/2.022, allocations: 19.58 MB / 1.137 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.021/2.043, allocations: 12.06 MB / 1.149 GB, free: 2.516 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/2.043, allocations: 4 kB / 1.149 GB, free: 2.512 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01196/2.055, allocations: 5.787 MB / 1.154 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2775/2.333, allocations: 0.6876 MB / 1.155 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04159/2.374, allocations: 16.64 MB / 1.171 GB, free: 122.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01084/2.385, allocations: 4.936 MB / 1.176 GB, free: 121.6 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.008259/2.393, allocations: 2.794 MB / 1.179 GB, free: 121.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005335/2.399, allocations: 3.093 MB / 1.182 GB, free: 121.6 MB / 0.5573 GB Notification: Performance of SimCode: time 1.142e-06/2.399, allocations: 3.844 kB / 1.182 GB, free: 121.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1808/2.58, allocations: 145.6 MB / 1.324 GB, free: 33.89 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001415/2.58, allocations: 181.6 kB / 1.324 GB, free: 33.66 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.171/7.751, allocations: 0 / 1.324 GB, free: 33.66 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat