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.001036/0.001036, allocations: 198.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.2 MB / 245 MB, free: 7.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001001, allocations: 100.9 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002286/0.0002286, allocations: 4 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2142, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1164/0.3307, allocations: 100.1 MB / 0.4977 GB, free: 6.438 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.331, allocations: 93.2 kB / 0.4978 GB, free: 6.348 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4123/0.7433, allocations: 106.5 MB / 0.6018 GB, free: 8.098 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.7434, allocations: 0 / 0.6018 GB, free: 8.098 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002403/0.7436, allocations: 108 kB / 0.6019 GB, free: 7.992 MB / 378.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.0153/0.7589, allocations: 5.605 MB / 0.6073 GB, free: 2.312 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.759, allocations: 8.031 kB / 0.6073 GB, free: 2.305 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003128/0.7621, allocations: 0.8976 MB / 0.6082 GB, free: 1.398 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02711/0.7893, allocations: 6.924 MB / 0.615 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01584/0.8051, allocations: 5.82 MB / 0.6207 GB, free: 4.578 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000351/0.8055, allocations: 386.3 kB / 0.621 GB, free: 4.199 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002305/0.8079, allocations: 0.5114 MB / 0.6215 GB, free: 3.688 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02596/0.8338, allocations: 12.32 MB / 0.6336 GB, free: 6.215 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002285/0.8341, allocations: 79.33 kB / 0.6336 GB, free: 6.137 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008353/0.835, allocations: 251.9 kB / 0.6339 GB, free: 5.891 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001333/0.8363, allocations: 1.055 MB / 0.6349 GB, free: 4.836 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01988/0.8562, allocations: 10.07 MB / 0.6447 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2923/1.149, allocations: 55.56 MB / 0.699 GB, free: 50.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009128/1.158, allocations: 4.188 MB / 0.7031 GB, free: 49.44 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01313/1.171, allocations: 9.362 MB / 0.7122 GB, free: 47.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/1.171, allocations: 50.28 kB / 0.7123 GB, free: 47.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 4.589e-06/1.171, allocations: 6.094 kB / 0.7123 GB, free: 47.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.04342/1.214, allocations: 17.69 MB / 0.7296 GB, free: 43.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.556e-05/1.215, allocations: 198.6 kB / 0.7297 GB, free: 43.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007454/1.222, allocations: 4.148 MB / 0.7338 GB, free: 43.28 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004349/1.223, allocations: 51.73 kB / 0.7338 GB, free: 43.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002259/1.225, allocations: 3.651 MB / 0.7374 GB, free: 41.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001023/1.226, allocations: 0.7645 MB / 0.7382 GB, free: 41.01 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005152/1.226, allocations: 129.4 kB / 0.7383 GB, free: 41.01 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003399/1.227, allocations: 0.5697 MB / 0.7388 GB, free: 40.69 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002813/1.23, allocations: 2.089 MB / 0.7409 GB, free: 40.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004559/1.234, allocations: 5.935 MB / 0.7467 GB, free: 34.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004738/1.239, allocations: 3.461 MB / 0.7501 GB, free: 33.35 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001177/1.239, allocations: 41.06 kB / 0.7501 GB, free: 33.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01515/1.254, allocations: 8.516 MB / 0.7584 GB, free: 30.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.295e-05/1.254, allocations: 67.31 kB / 0.7585 GB, free: 30.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001336/1.255, allocations: 133.8 kB / 0.7586 GB, free: 30.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/1.257, allocations: 0.9383 MB / 0.7595 GB, free: 30.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004198/1.261, allocations: 1.436 MB / 0.7609 GB, free: 30.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007538/1.269, allocations: 7.605 MB / 0.7683 GB, free: 25.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004958/1.274, allocations: 342.6 kB / 0.7687 GB, free: 25.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001266/1.275, allocations: 383.2 kB / 0.769 GB, free: 25.5 MB / 442.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 () * Number of clocked 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.005114/1.28, allocations: 2.482 MB / 0.7715 GB, free: 23.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.281, allocations: 417.6 kB / 0.7719 GB, free: 23.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006044/1.287, allocations: 3.224 MB / 0.775 GB, free: 20.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.409e-05/1.287, allocations: 24 kB / 0.775 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/1.287, allocations: 4 kB / 0.775 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.638e-05/1.287, allocations: 11.5 kB / 0.775 GB, free: 20.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01786/1.305, allocations: 8.589 MB / 0.7834 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/1.305, allocations: 4 kB / 0.7834 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/1.307, allocations: 305.5 kB / 0.7837 GB, free: 13.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002138/1.309, allocations: 0.6894 MB / 0.7844 GB, free: 13.17 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002765/1.309, allocations: 32 kB / 0.7844 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006667/1.316, allocations: 6.729 MB / 0.791 GB, free: 6.863 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.316, allocations: 0 / 0.791 GB, free: 6.863 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007724/1.324, allocations: 5.794 MB / 0.7967 GB, free: 1.754 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/1.325, allocations: 448.3 kB / 0.7971 GB, free: 1.305 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.326, allocations: 32.52 kB / 0.7971 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002018/1.328, allocations: 99.67 kB / 0.7972 GB, free: 1.207 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000373/1.328, allocations: 117.4 kB / 0.7973 GB, free: 1.133 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001594/1.329, allocations: 55.95 kB / 0.7974 GB, free: 1.086 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.009133/1.338, allocations: 3.228 MB / 0.8005 GB, free: 15.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.41e-07/1.338, allocations: 0 / 0.8005 GB, free: 15.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007224/1.345, allocations: 1.138 MB / 0.8016 GB, free: 14.26 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 () * 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.01014/1.355, allocations: 6.654 MB / 0.8081 GB, free: 8.309 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009263/1.364, allocations: 5.349 MB / 0.8134 GB, free: 3.594 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/1.365, allocations: 0 / 0.8134 GB, free: 3.594 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003039/1.368, allocations: 1.815 MB / 0.8151 GB, free: 1.977 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003175/1.371, allocations: 0.522 MB / 0.8157 GB, free: 1.539 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3141/1.685, allocations: 133.8 MB / 0.9463 GB, free: 41.44 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006084/1.691, allocations: 3.964 MB / 0.9502 GB, free: 40.62 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004798/1.696, allocations: 2.002 MB / 0.9522 GB, free: 40.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003039/1.699, allocations: 2.366 MB / 0.9545 GB, free: 40.57 MB / 490.7 MB Notification: Performance of SimCode: time 2.204e-06/1.699, allocations: 0 / 0.9545 GB, free: 40.57 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3258/2.025, allocations: 88.82 MB / 1.041 GB, free: 112 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/2.025, allocations: 229 kB / 1.041 GB, free: 111.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.291/6.316, allocations: 3 kB / 1.041 GB, free: 111.8 MB / 490.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