Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.GearConstraint2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001494/0.001494, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.2 MB / 245 MB, free: 7.656 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 103.4 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.412/0.412, allocations: 45.23 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003316, allocations: 8 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4541/0.4545, allocations: 63.25 MB / 0.5193 GB, free: 43.88 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1611/0.6156, allocations: 111.5 MB / 0.6282 GB, free: 10.08 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.6159, allocations: 93.58 kB / 0.6283 GB, free: 9.992 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823/2.439, allocations: 285.9 MB / 0.9075 GB, free: 46.25 MB / 0.5262 GB Notification: Performance of FrontEnd: time 3.537e-06/2.439, allocations: 0 / 0.9075 GB, free: 46.25 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 0.001141/2.44, allocations: 277.5 kB / 0.9077 GB, free: 46.25 MB / 0.5262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.05874/2.499, allocations: 13.85 MB / 0.9213 GB, free: 43.04 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/2.499, allocations: 8.656 kB / 0.9213 GB, free: 43.04 MB / 0.5262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01625/2.515, allocations: 2.615 MB / 0.9238 GB, free: 42.86 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07553/2.59, allocations: 18.43 MB / 0.9418 GB, free: 41.89 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04128/2.632, allocations: 13.26 MB / 0.9548 GB, free: 40.45 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001752/2.634, allocations: 1.072 MB / 0.9558 GB, free: 40.41 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00911/2.643, allocations: 1.419 MB / 0.9572 GB, free: 40.4 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08828/2.731, allocations: 35.65 MB / 0.992 GB, free: 34.81 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001147/2.732, allocations: 136 kB / 0.9921 GB, free: 34.8 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007978/2.74, allocations: 0.644 MB / 0.9928 GB, free: 34.8 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005386/2.746, allocations: 3.593 MB / 0.9963 GB, free: 34.77 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06824/2.814, allocations: 32.27 MB / 1.028 GB, free: 28.64 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6339/3.448, allocations: 138.4 MB / 1.163 GB, free: 24.61 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03454/3.483, allocations: 15.2 MB / 1.178 GB, free: 22.73 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07833/3.561, allocations: 34.52 MB / 1.211 GB, free: 20.1 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.354e-05/3.561, allocations: 93.67 kB / 1.212 GB, free: 20.05 MB / 0.573 GB Notification: Performance of pre-optimization done (n=705): time 1.061e-05/3.561, allocations: 3.344 kB / 1.212 GB, free: 20.05 MB / 0.573 GB Notification: Performance of matching and sorting (n=787): time 0.2376/3.799, allocations: 81.9 MB / 1.292 GB, free: 9.891 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001844/3.799, allocations: 300.3 kB / 1.292 GB, free: 9.539 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02383/3.823, allocations: 9.166 MB / 1.301 GB, free: 2.055 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 0.001874/3.825, allocations: 136.8 kB / 1.301 GB, free: 1.918 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.00968/3.834, allocations: 9.571 MB / 1.31 GB, free: 9.383 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.004853/3.839, allocations: 2.852 MB / 1.313 GB, free: 6.859 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003078/3.842, allocations: 340 kB / 1.313 GB, free: 6.527 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.003084/3.845, allocations: 1.079 MB / 1.314 GB, free: 5.656 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02234/3.868, allocations: 8.473 MB / 1.323 GB, free: 0 / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02524/3.893, allocations: 17.34 MB / 1.34 GB, free: 12 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02272/3.916, allocations: 11.76 MB / 1.351 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005693/3.917, allocations: 92 kB / 1.351 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.4702/4.387, allocations: 27.13 MB / 1.378 GB, free: 132.2 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003016/4.387, allocations: 144 kB / 1.378 GB, free: 132.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000684/4.388, allocations: 323.1 kB / 1.378 GB, free: 132.2 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008559/4.396, allocations: 2.406 MB / 1.38 GB, free: 132.2 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01661/4.413, allocations: 4.135 MB / 1.385 GB, free: 131.9 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02117/4.434, allocations: 14.78 MB / 1.399 GB, free: 129 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01648/4.451, allocations: 1.062 MB / 1.4 GB, free: 129 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004884/4.456, allocations: 0.9663 MB / 1.401 GB, free: 129 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1479 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[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],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2132): * Single equations (assignments): 2115 * Array equations: 15 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01853/4.474, allocations: 7.002 MB / 1.408 GB, free: 128.5 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00269/4.477, allocations: 0.9789 MB / 1.409 GB, free: 128.5 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02889/4.506, allocations: 15.31 MB / 1.424 GB, free: 128.1 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002312/4.506, allocations: 160.8 kB / 1.424 GB, free: 128.1 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.576e-05/4.506, allocations: 16.23 kB / 1.424 GB, free: 128.1 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001751/4.506, allocations: 32.11 kB / 1.424 GB, free: 128.1 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07361/4.58, allocations: 33.57 MB / 1.457 GB, free: 119.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.156e-05/4.58, allocations: 11.53 kB / 1.457 GB, free: 119.1 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006796/4.587, allocations: 1.304 MB / 1.458 GB, free: 119.1 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005627/4.593, allocations: 1.778 MB / 1.46 GB, free: 118.7 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001398/4.594, allocations: 124.7 kB / 1.46 GB, free: 118.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01553/4.61, allocations: 13.38 MB / 1.473 GB, free: 111.7 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/4.61, allocations: 11.34 kB / 1.473 GB, free: 111.6 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03625/4.646, allocations: 25.63 MB / 1.498 GB, free: 99.54 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004016/4.65, allocations: 0.972 MB / 1.499 GB, free: 98.58 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003934/4.654, allocations: 113.9 kB / 1.499 GB, free: 98.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006935/4.661, allocations: 0.5119 MB / 1.499 GB, free: 98.16 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001681/4.663, allocations: 420.8 kB / 1.5 GB, free: 97.89 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005931/4.663, allocations: 179.4 kB / 1.5 GB, free: 97.72 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.01217/4.675, allocations: 6.359 MB / 1.506 GB, free: 92.55 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.11e-07/4.675, allocations: 0 / 1.506 GB, free: 92.55 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01849/4.694, allocations: 3.324 MB / 1.51 GB, free: 89.25 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.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 (611): * Single equations (assignments): 594 * Array equations: 15 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03478/4.729, allocations: 27.11 MB / 1.536 GB, free: 64.84 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.02903/4.758, allocations: 19.08 MB / 1.555 GB, free: 48.07 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/4.758, allocations: 3.75 kB / 1.555 GB, free: 48.07 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.01151/4.769, allocations: 7.415 MB / 1.562 GB, free: 41.53 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008082/4.777, allocations: 1.237 MB / 1.563 GB, free: 40.5 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.087/5.865, allocations: 361.1 MB / 1.916 GB, free: 141.3 MB / 0.7293 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02865/5.893, allocations: 10.28 MB / 1.926 GB, free: 140.2 MB / 0.7293 GB Notification: Performance of simCode: alias equations: time 0.02285/5.916, allocations: 6.478 MB / 1.932 GB, free: 140.1 MB / 0.7293 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01789/5.934, allocations: 7.208 MB / 1.939 GB, free: 140.1 MB / 0.7293 GB Notification: Performance of SimCode: time 1.362e-06/5.934, allocations: 0 / 1.939 GB, free: 140.1 MB / 0.7293 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7454/6.679, allocations: 229.5 MB / 2.163 GB, free: 187 MB / 0.7293 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/6.68, allocations: 225 kB / 2.164 GB, free: 186.7 MB / 0.7293 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/19.14, allocations: 0 / 2.164 GB, free: 186.7 MB / 0.7293 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat