Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001167/0.001167, allocations: 176.8 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.928/1.928, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008773/0.000877, allocations: 78.7 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.813e-05/1.817e-05, allocations: 0 / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1173, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.5725, allocations: 98.04 MB / 461.2 MB, free: 13.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/0.5729, allocations: 85.61 kB / 461.3 MB, free: 13.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5934/1.166, allocations: 104.7 MB / 0.5527 GB, free: 87.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.806e-06/1.166, allocations: 0 / 0.5527 GB, free: 87.72 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003004/1.167, allocations: 108.2 kB / 0.5528 GB, free: 87.72 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01908/1.186, allocations: 5.273 MB / 0.558 GB, free: 85.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/1.186, allocations: 10.62 kB / 0.558 GB, free: 85.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02774/1.214, allocations: 6.934 MB / 0.5648 GB, free: 85.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01828/1.232, allocations: 6.817 MB / 0.5714 GB, free: 84.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004617/1.233, allocations: 175 kB / 0.5716 GB, free: 84.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003613/1.236, allocations: 322.4 kB / 0.5719 GB, free: 84.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01788/1.254, allocations: 7.552 MB / 0.5793 GB, free: 84.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03008/1.284, allocations: 11.33 MB / 0.5904 GB, free: 78.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005691/1.285, allocations: 76.78 kB / 0.5904 GB, free: 78.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002762/1.288, allocations: 36.09 kB / 0.5905 GB, free: 78.83 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001831/1.289, allocations: 1.13 MB / 0.5916 GB, free: 78.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06569/1.355, allocations: 56.05 MB / 0.6463 GB, free: 30.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004456/1.36, allocations: 3.494 MB / 0.6497 GB, free: 27.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003363/1.363, allocations: 2.272 MB / 0.6519 GB, free: 25.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006243/1.364, allocations: 346.4 kB / 0.6523 GB, free: 24.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.57e-05/1.364, allocations: 55.88 kB / 0.6523 GB, free: 24.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=201): time 9.718e-06/1.364, allocations: 0 / 0.6523 GB, free: 24.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=228): time 0.05682/1.421, allocations: 19.97 MB / 0.6718 GB, free: 6.074 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.164e-05/1.421, allocations: 209.9 kB / 0.672 GB, free: 5.828 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006775/1.428, allocations: 3.672 MB / 0.6756 GB, free: 2.145 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005349/1.428, allocations: 29.7 kB / 0.6756 GB, free: 2.109 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002592/1.431, allocations: 3.825 MB / 0.6794 GB, free: 14.23 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001311/1.432, allocations: 0.8443 MB / 0.6802 GB, free: 13.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/1.432, allocations: 4 kB / 0.6802 GB, free: 13.37 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004541/1.433, allocations: 0.5955 MB / 0.6808 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003468/1.436, allocations: 2.169 MB / 0.6829 GB, free: 10.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007305/1.444, allocations: 6.259 MB / 0.689 GB, free: 2.285 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3269/1.771, allocations: 3.65 MB / 0.6926 GB, free: 90.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002409/1.771, allocations: 42.44 kB / 0.6926 GB, free: 90.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.02349/1.794, allocations: 8.244 MB / 0.7007 GB, free: 90.35 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001522/1.795, allocations: 67.28 kB / 0.7007 GB, free: 90.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000311/1.795, allocations: 145.1 kB / 0.7009 GB, free: 90.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003155/1.798, allocations: 0.954 MB / 0.7018 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006582/1.805, allocations: 1.576 MB / 0.7033 GB, free: 90.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008371/1.813, allocations: 7.261 MB / 0.7104 GB, free: 87.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006128/1.819, allocations: 232.4 kB / 0.7107 GB, free: 87.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001587/1.821, allocations: 418.3 kB / 0.7111 GB, free: 87.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 (835): * Single equations (assignments): 830 * 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.001165/1.822, allocations: 475.3 kB / 0.7115 GB, free: 87.32 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006485/1.829, allocations: 3.756 MB / 0.7152 GB, free: 87.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009291/1.83, allocations: 402.2 kB / 0.7156 GB, free: 87.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006263/1.836, allocations: 3.489 MB / 0.719 GB, free: 87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.851e-05/1.836, allocations: 26.97 kB / 0.719 GB, free: 87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.716e-05/1.836, allocations: 7.25 kB / 0.719 GB, free: 87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-05/1.836, allocations: 17.03 kB / 0.719 GB, free: 87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01779/1.854, allocations: 8.56 MB / 0.7274 GB, free: 86.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.423e-05/1.854, allocations: 3.688 kB / 0.7274 GB, free: 86.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/1.856, allocations: 355.8 kB / 0.7277 GB, free: 86.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002057/1.858, allocations: 0.6821 MB / 0.7284 GB, free: 85.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002069/1.858, allocations: 5.188 kB / 0.7284 GB, free: 85.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006511/1.864, allocations: 6.207 MB / 0.7344 GB, free: 81.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/1.865, allocations: 3.75 kB / 0.7345 GB, free: 81.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009774/1.874, allocations: 6.331 MB / 0.7406 GB, free: 79.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002057/1.876, allocations: 0.7113 MB / 0.7413 GB, free: 78.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005703/1.877, allocations: 7.094 kB / 0.7413 GB, free: 78.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/1.879, allocations: 80.22 kB / 0.7414 GB, free: 78.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/1.879, allocations: 135.8 kB / 0.7415 GB, free: 78.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/1.879, allocations: 62.03 kB / 0.7416 GB, free: 78.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004693/1.884, allocations: 2.488 MB / 0.744 GB, free: 77.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.884, allocations: 0 / 0.744 GB, free: 77.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007776/1.892, allocations: 1.038 MB / 0.745 GB, free: 77.66 MB / 426.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 (179): * Single equations (assignments): 174 * 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.009993/1.902, allocations: 7.332 MB / 0.7522 GB, free: 73.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01006/1.912, allocations: 5.482 MB / 0.7576 GB, free: 71.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.912, allocations: 0 / 0.7576 GB, free: 71.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002902/1.915, allocations: 1.943 MB / 0.7595 GB, free: 71.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003067/1.918, allocations: 440.8 kB / 0.7599 GB, free: 70.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02921/1.947, allocations: 10.86 MB / 0.7705 GB, free: 63.81 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005674/1.953, allocations: 4.107 MB / 0.7745 GB, free: 60.75 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005601/1.958, allocations: 2.192 MB / 0.7766 GB, free: 59.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00396/1.962, allocations: 2.452 MB / 0.779 GB, free: 57.14 MB / 426.7 MB Notification: Performance of SimCode: time 2.134e-06/1.962, allocations: 0 / 0.779 GB, free: 57.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4436/2.406, allocations: 86.57 MB / 0.8636 GB, free: 85.77 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/2.406, allocations: 170.9 kB / 0.8637 GB, free: 85.57 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.059/7.465, allocations: 0 / 0.8637 GB, free: 85.57 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat