Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_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.001431/0.001431, allocations: 196.1 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.578/1.578, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001079/0.001078, allocations: 92.03 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.249e-05/4.313e-05, allocations: 0 / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1378, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4539/0.5918, allocations: 100.1 MB / 0.4904 GB, free: 5.648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.5921, allocations: 87.58 kB / 0.4905 GB, free: 5.605 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6348/1.227, allocations: 106.5 MB / 0.5945 GB, free: 76.63 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.977e-06/1.227, allocations: 2.75 kB / 0.5945 GB, free: 76.63 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007728/1.228, allocations: 106.1 kB / 0.5946 GB, free: 76.63 MB / 442.7 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.03278/1.261, allocations: 5.148 MB / 0.5997 GB, free: 74.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.242e-05/1.261, allocations: 10.33 kB / 0.5997 GB, free: 74.57 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006867/1.268, allocations: 0.8999 MB / 0.6006 GB, free: 74.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04478/1.312, allocations: 6.93 MB / 0.6073 GB, free: 74.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02144/1.334, allocations: 5.781 MB / 0.613 GB, free: 73.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001084/1.335, allocations: 393.1 kB / 0.6133 GB, free: 73.42 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00396/1.339, allocations: 0.512 MB / 0.6138 GB, free: 73.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04157/1.381, allocations: 12.22 MB / 0.6258 GB, free: 70.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001033/1.382, allocations: 76.3 kB / 0.6258 GB, free: 70.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003596/1.385, allocations: 248.3 kB / 0.6261 GB, free: 70.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001975/1.387, allocations: 1.068 MB / 0.6271 GB, free: 70.22 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02282/1.41, allocations: 9.877 MB / 0.6368 GB, free: 68.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06459/1.475, allocations: 55.56 MB / 0.691 GB, free: 26.63 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009693/1.485, allocations: 4.14 MB / 0.6951 GB, free: 25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002704/1.487, allocations: 2.214 MB / 0.6972 GB, free: 24.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.014/1.502, allocations: 9.369 MB / 0.7064 GB, free: 19.24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.992e-05/1.502, allocations: 57.56 kB / 0.7064 GB, free: 19.19 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 5.16e-06/1.502, allocations: 0 / 0.7064 GB, free: 19.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.04653/1.548, allocations: 15.08 MB / 0.7212 GB, free: 7.617 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/1.548, allocations: 200.4 kB / 0.7214 GB, free: 7.383 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01058/1.559, allocations: 4.096 MB / 0.7254 GB, free: 3.746 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005624/1.56, allocations: 57.7 kB / 0.7254 GB, free: 3.684 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003239/1.563, allocations: 3.654 MB / 0.729 GB, free: 416 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001568/1.564, allocations: 0.7683 MB / 0.7297 GB, free: 15.76 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009341/1.565, allocations: 128 kB / 0.7299 GB, free: 15.63 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007523/1.566, allocations: 0.5708 MB / 0.7304 GB, free: 15.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004112/1.57, allocations: 2.031 MB / 0.7324 GB, free: 13.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007638/1.578, allocations: 5.872 MB / 0.7381 GB, free: 5.812 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00628/1.584, allocations: 3.443 MB / 0.7415 GB, free: 2.848 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001679/1.584, allocations: 40 kB / 0.7415 GB, free: 2.809 MB / 458.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.3778/1.962, allocations: 8.403 MB / 0.7497 GB, free: 81.06 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/1.962, allocations: 64.66 kB / 0.7498 GB, free: 81.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002326/1.963, allocations: 137.5 kB / 0.7499 GB, free: 81.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002809/1.966, allocations: 0.9276 MB / 0.7508 GB, free: 81.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005275/1.971, allocations: 1.436 MB / 0.7522 GB, free: 81.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00905/1.98, allocations: 7.406 MB / 0.7595 GB, free: 78.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006379/1.986, allocations: 338 kB / 0.7598 GB, free: 78.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001524/1.988, allocations: 380.3 kB / 0.7602 GB, free: 78.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 47 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 755 * 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.001166/1.989, allocations: 0.6059 MB / 0.7608 GB, free: 78.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.99, allocations: 415.3 kB / 0.7611 GB, free: 78.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005892/1.996, allocations: 3.162 MB / 0.7642 GB, free: 78.12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.389e-05/1.996, allocations: 22.28 kB / 0.7643 GB, free: 78.12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/1.996, allocations: 15.94 kB / 0.7643 GB, free: 78.12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/1.996, allocations: 5.766 kB / 0.7643 GB, free: 78.12 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0183/2.014, allocations: 8.522 MB / 0.7726 GB, free: 77.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.99e-05/2.014, allocations: 1.062 kB / 0.7726 GB, free: 77.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001664/2.016, allocations: 303.3 kB / 0.7729 GB, free: 77.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/2.018, allocations: 0.6894 MB / 0.7736 GB, free: 77.59 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002127/2.019, allocations: 34.53 kB / 0.7736 GB, free: 77.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009903/2.029, allocations: 6.549 MB / 0.78 GB, free: 74.99 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/2.029, allocations: 5.328 kB / 0.78 GB, free: 74.99 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/2.039, allocations: 5.682 MB / 0.7855 GB, free: 74.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001871/2.041, allocations: 457.2 kB / 0.786 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006992/2.042, allocations: 35.11 kB / 0.786 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/2.043, allocations: 95.72 kB / 0.7861 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004511/2.044, allocations: 119.2 kB / 0.7862 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/2.044, allocations: 54.61 kB / 0.7863 GB, free: 73.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007916/2.052, allocations: 2.889 MB / 0.7891 GB, free: 73.31 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.92e-07/2.052, allocations: 0 / 0.7891 GB, free: 73.31 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008441/2.06, allocations: 1.131 MB / 0.7902 GB, free: 73.19 MB / 458.7 MB 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 () * 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.009181/2.07, allocations: 6.55 MB / 0.7966 GB, free: 70.01 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008648/2.078, allocations: 5.267 MB / 0.8017 GB, free: 68.11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/2.078, allocations: 0 / 0.8017 GB, free: 68.11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002773/2.081, allocations: 1.773 MB / 0.8035 GB, free: 67.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004118/2.085, allocations: 0.5217 MB / 0.804 GB, free: 67.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.033/2.118, allocations: 10.48 MB / 0.8142 GB, free: 63.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008791/2.127, allocations: 3.959 MB / 0.8181 GB, free: 61.99 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0066/2.134, allocations: 2.001 MB / 0.82 GB, free: 61.95 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006714/2.141, allocations: 2.366 MB / 0.8223 GB, free: 60 MB / 458.7 MB Notification: Performance of SimCode: time 1.823e-06/2.141, allocations: 0 / 0.8223 GB, free: 60 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.161/2.302, allocations: 88.92 MB / 0.9092 GB, free: 11.61 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000253/2.302, allocations: 196.1 kB / 0.9094 GB, free: 11.39 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.408/7.711, allocations: 0 / 0.9094 GB, free: 11.39 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat