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.001589/0.001589, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.75/1.75, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 98.3 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.922e-05, allocations: 0 / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1328, allocations: 51.48 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4665/0.5994, allocations: 99.4 MB / 494.7 MB, free: 9.781 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.5997, allocations: 84.58 kB / 494.7 MB, free: 9.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6248/1.225, allocations: 104.3 MB / 0.585 GB, free: 72.08 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.404e-06/1.225, allocations: 0 / 0.585 GB, free: 72.08 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003361/1.225, allocations: 108.2 kB / 0.5851 GB, free: 72.08 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.0208/1.246, allocations: 5.139 MB / 0.5901 GB, free: 70.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.507e-05/1.246, allocations: 10.03 kB / 0.5901 GB, free: 70.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02885/1.275, allocations: 6.935 MB / 0.5969 GB, free: 69.69 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01689/1.292, allocations: 5.782 MB / 0.6025 GB, free: 68.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002853/1.292, allocations: 169.2 kB / 0.6027 GB, free: 68.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002436/1.294, allocations: 314.8 kB / 0.603 GB, free: 68.97 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01846/1.313, allocations: 7.219 MB / 0.61 GB, free: 68.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03053/1.344, allocations: 10.91 MB / 0.6207 GB, free: 65.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003114/1.344, allocations: 73.22 kB / 0.6208 GB, free: 65.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007333/1.345, allocations: 34.19 kB / 0.6208 GB, free: 65.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001935/1.347, allocations: 1.064 MB / 0.6218 GB, free: 65.89 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0682/1.415, allocations: 54.58 MB / 0.6751 GB, free: 42.79 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004346/1.419, allocations: 3.3 MB / 0.6784 GB, free: 41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002377/1.422, allocations: 2.115 MB / 0.6804 GB, free: 40.05 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003842/1.422, allocations: 332.2 kB / 0.6807 GB, free: 39.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.987e-05/1.422, allocations: 59.41 kB / 0.6808 GB, free: 39.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=180): time 5.2e-06/1.422, allocations: 0 / 0.6808 GB, free: 39.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=207): time 0.0397/1.462, allocations: 18.97 MB / 0.6993 GB, free: 31.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.827e-05/1.462, allocations: 204.6 kB / 0.6995 GB, free: 31.52 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006636/1.469, allocations: 3.567 MB / 0.703 GB, free: 30.13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006198/1.469, allocations: 28.98 kB / 0.703 GB, free: 30.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002886/1.472, allocations: 3.706 MB / 0.7067 GB, free: 27.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/1.473, allocations: 0.7678 MB / 0.7074 GB, free: 26.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002708/1.474, allocations: 0 / 0.7074 GB, free: 26.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004266/1.474, allocations: 0.5803 MB / 0.708 GB, free: 26.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002707/1.477, allocations: 2.01 MB / 0.7099 GB, free: 25.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004435/1.481, allocations: 5.949 MB / 0.7157 GB, free: 19.27 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004442/1.486, allocations: 3.431 MB / 0.7191 GB, free: 17.96 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.327e-05/1.486, allocations: 40.84 kB / 0.7191 GB, free: 17.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.01528/1.501, allocations: 7.799 MB / 0.7268 GB, free: 11.47 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/1.501, allocations: 64 kB / 0.7268 GB, free: 11.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002086/1.501, allocations: 142 kB / 0.7269 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002746/1.504, allocations: 0.9471 MB / 0.7279 GB, free: 10.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005584/1.51, allocations: 1.494 MB / 0.7293 GB, free: 9.223 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/1.52, allocations: 7.253 MB / 0.7364 GB, free: 2.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005942/1.526, allocations: 216.8 kB / 0.7366 GB, free: 2.316 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001593/1.528, allocations: 402.2 kB / 0.737 GB, free: 1.93 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * 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 (791): * Single equations (assignments): 786 * 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.001238/1.529, allocations: 469.1 kB / 0.7375 GB, free: 1.465 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3262/1.855, allocations: 3.428 MB / 0.7408 GB, free: 77.48 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.856, allocations: 386 kB / 0.7412 GB, free: 77.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005974/1.862, allocations: 3.126 MB / 0.7442 GB, free: 77.35 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.52e-05/1.862, allocations: 23.36 kB / 0.7442 GB, free: 77.35 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/1.862, allocations: 6.344 kB / 0.7443 GB, free: 77.35 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/1.862, allocations: 6.562 kB / 0.7443 GB, free: 77.35 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/1.876, allocations: 7.918 MB / 0.752 GB, free: 76.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/1.876, allocations: 3.344 kB / 0.752 GB, free: 76.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/1.877, allocations: 313.3 kB / 0.7523 GB, free: 76.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/1.88, allocations: 0.6725 MB / 0.7529 GB, free: 76.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001618/1.88, allocations: 9.297 kB / 0.753 GB, free: 76.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006496/1.886, allocations: 6.202 MB / 0.759 GB, free: 74.29 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/1.886, allocations: 2.938 kB / 0.759 GB, free: 74.29 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008245/1.895, allocations: 5.766 MB / 0.7646 GB, free: 73.52 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/1.896, allocations: 424.2 kB / 0.7651 GB, free: 73.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004342/1.896, allocations: 7.172 kB / 0.7651 GB, free: 73.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/1.898, allocations: 68.92 kB / 0.7651 GB, free: 73.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/1.898, allocations: 128 kB / 0.7652 GB, free: 73.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/1.898, allocations: 53.73 kB / 0.7653 GB, free: 73.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003943/1.902, allocations: 2.417 MB / 0.7677 GB, free: 73.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.902, allocations: 0 / 0.7677 GB, free: 73.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006527/1.909, allocations: 0.9942 MB / 0.7686 GB, free: 73.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (157): * Single equations (assignments): 152 * 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.01015/1.919, allocations: 6.78 MB / 0.7753 GB, free: 71.49 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009737/1.929, allocations: 5.081 MB / 0.7802 GB, free: 71.22 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/1.929, allocations: 0 / 0.7802 GB, free: 71.22 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003206/1.932, allocations: 1.768 MB / 0.7819 GB, free: 70.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003532/1.935, allocations: 454 kB / 0.7824 GB, free: 70.93 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03044/1.966, allocations: 10.29 MB / 0.7924 GB, free: 67.39 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005261/1.971, allocations: 3.98 MB / 0.7963 GB, free: 65.96 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005987/1.977, allocations: 2.076 MB / 0.7983 GB, free: 65.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003887/1.981, allocations: 2.335 MB / 0.8006 GB, free: 64 MB / 458.7 MB Notification: Performance of SimCode: time 1.553e-06/1.981, allocations: 0 / 0.8006 GB, free: 64 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.147/2.128, allocations: 83.07 MB / 0.8817 GB, free: 21.43 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002376/2.129, allocations: 161.3 kB / 0.8819 GB, free: 21.24 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.905/7.033, allocations: 3.875 kB / 0.8819 GB, free: 21.24 MB / 458.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