Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.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.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 202.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.2 MB / 245 MB, free: 7.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009045/0.0009044, allocations: 94.7 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4308/0.4308, allocations: 45.22 MB / 394.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002815/0.0002815, allocations: 8 kB / 468.5 MB, free: 7.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4493/0.4496, allocations: 63.24 MB / 0.5193 GB, free: 43.45 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1619/0.6116, allocations: 112.5 MB / 0.6291 GB, free: 9.117 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003768/0.6121, allocations: 83.94 kB / 0.6292 GB, free: 9.039 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7245/1.337, allocations: 164.4 MB / 0.7897 GB, free: 79.71 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.525e-06/1.337, allocations: 0 / 0.7897 GB, free: 79.71 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004663/1.337, allocations: 165 kB / 0.7898 GB, free: 79.69 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.03085/1.368, allocations: 7.867 MB / 0.7975 GB, free: 74.49 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/1.368, allocations: 7.594 kB / 0.7975 GB, free: 74.49 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007616/1.376, allocations: 1.51 MB / 0.799 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03967/1.415, allocations: 10.04 MB / 0.8088 GB, free: 65.07 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02456/1.44, allocations: 7.413 MB / 0.816 GB, free: 57.56 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000717/1.441, allocations: 0.6018 MB / 0.8166 GB, free: 56.96 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005206/1.446, allocations: 0.8083 MB / 0.8174 GB, free: 56.15 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05254/1.499, allocations: 20.08 MB / 0.837 GB, free: 34.63 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007131/1.499, allocations: 87.19 kB / 0.8371 GB, free: 34.54 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005398/1.505, allocations: 383.8 kB / 0.8375 GB, free: 34.17 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002978/1.508, allocations: 2.049 MB / 0.8395 GB, free: 32.12 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03808/1.546, allocations: 17.65 MB / 0.8567 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4903/2.036, allocations: 83.52 MB / 0.9383 GB, free: 53.57 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01582/2.052, allocations: 7.815 MB / 0.9459 GB, free: 52.31 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00037/2.053, allocations: 67.58 kB / 0.946 GB, free: 52.31 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.403e-05/2.053, allocations: 71.56 kB / 0.946 GB, free: 52.27 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=429): time 9.548e-06/2.053, allocations: 0 / 0.946 GB, free: 52.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=476): time 0.09277/2.145, allocations: 40.35 MB / 0.9854 GB, free: 46.04 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.527e-05/2.145, allocations: 231.4 kB / 0.9857 GB, free: 45.82 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009666/2.155, allocations: 5.643 MB / 0.9912 GB, free: 44.57 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00118/2.156, allocations: 90.17 kB / 0.9913 GB, free: 44.49 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003444/2.16, allocations: 5.572 MB / 0.9967 GB, free: 40.33 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00238/2.162, allocations: 1.737 MB / 0.9984 GB, free: 39.05 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008526/2.163, allocations: 213.7 kB / 0.9986 GB, free: 38.88 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000603/2.164, allocations: 0.7893 MB / 0.9994 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006828/2.171, allocations: 4.697 MB / 1.004 GB, free: 36.83 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01104/2.182, allocations: 10.74 MB / 1.014 GB, free: 27.27 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/2.192, allocations: 7.08 MB / 1.021 GB, free: 24.87 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002291/2.193, allocations: 60.41 kB / 1.021 GB, free: 24.87 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.03564/2.228, allocations: 16.6 MB / 1.038 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004184/2.229, allocations: 95 kB / 1.038 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006351/2.229, allocations: 215 kB / 1.038 GB, free: 19.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004929/2.234, allocations: 1.719 MB / 1.04 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009927/2.244, allocations: 2.53 MB / 1.042 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01607/2.26, allocations: 14.37 MB / 1.056 GB, free: 2.434 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01563/2.276, allocations: 0.6402 MB / 1.057 GB, free: 1.898 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005206/2.281, allocations: 0.6205 MB / 1.057 GB, free: 1.289 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 962 * Number of states: 0 () * Number of discrete variables: 53 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1324): * Single equations (assignments): 1311 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02188/2.303, allocations: 4.632 MB / 1.062 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002218/2.306, allocations: 0.6086 MB / 1.062 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01967/2.325, allocations: 9.219 MB / 1.071 GB, free: 6.773 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001379/2.325, allocations: 90.19 kB / 1.072 GB, free: 6.691 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.816e-05/2.325, allocations: 8 kB / 1.072 GB, free: 6.684 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-05/2.326, allocations: 20.55 kB / 1.072 GB, free: 6.68 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05672/2.382, allocations: 21 MB / 1.092 GB, free: 5.707 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.166e-05/2.382, allocations: 15.61 kB / 1.092 GB, free: 5.695 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004106/2.386, allocations: 0.7465 MB / 1.093 GB, free: 5.105 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004233/2.391, allocations: 1.359 MB / 1.094 GB, free: 4.129 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001136/2.392, allocations: 93.28 kB / 1.094 GB, free: 4.043 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01694/2.409, allocations: 13.24 MB / 1.107 GB, free: 7.609 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-05/2.409, allocations: 15.94 kB / 1.107 GB, free: 7.594 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.402/2.811, allocations: 16.56 MB / 1.123 GB, free: 137.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002582/2.814, allocations: 0.623 MB / 1.124 GB, free: 137.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002761/2.816, allocations: 84.2 kB / 1.124 GB, free: 137.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006448/2.823, allocations: 297.5 kB / 1.124 GB, free: 137.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002183/2.825, allocations: 292.1 kB / 1.125 GB, free: 137.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007727/2.826, allocations: 122.4 kB / 1.125 GB, free: 137.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.009924/2.836, allocations: 3.925 MB / 1.129 GB, free: 137.5 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.6e-07/2.836, allocations: 0 / 1.129 GB, free: 137.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01223/2.848, allocations: 1.979 MB / 1.13 GB, free: 137.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02682/2.875, allocations: 19.29 MB / 1.149 GB, free: 132 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02092/2.896, allocations: 11.66 MB / 1.161 GB, free: 131.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/2.896, allocations: 3.25 kB / 1.161 GB, free: 131.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.007277/2.903, allocations: 4.694 MB / 1.165 GB, free: 129.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005653/2.909, allocations: 0.7146 MB / 1.166 GB, free: 128.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4959/3.405, allocations: 218.1 MB / 1.379 GB, free: 158.9 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01312/3.418, allocations: 6.124 MB / 1.385 GB, free: 158 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.01185/3.43, allocations: 4 MB / 1.389 GB, free: 157.9 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00729/3.437, allocations: 3.935 MB / 1.393 GB, free: 157.9 MB / 0.6198 GB Notification: Performance of SimCode: time 1.372e-06/3.437, allocations: 0 / 1.393 GB, free: 157.9 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2023/3.64, allocations: 144.5 MB / 1.534 GB, free: 51.82 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/3.64, allocations: 202.1 kB / 1.534 GB, free: 51.57 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.635/10.28, allocations: 0 / 1.534 GB, free: 51.57 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat