Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002381/0.002381, allocations: 177.7 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00117/0.00117, allocations: 92.77 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.206e-05/2.213e-05, allocations: 3.984 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3434, allocations: 47.56 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1708/0.5142, allocations: 97.81 MB / 460.2 MB, free: 4.438 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003489/0.5146, allocations: 87.66 kB / 460.3 MB, free: 4.355 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7083/1.223, allocations: 104.7 MB / 0.5518 GB, free: 87.52 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.535e-06/1.223, allocations: 0 / 0.5518 GB, free: 87.52 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003907/1.223, allocations: 106.5 kB / 0.5519 GB, free: 87.51 MB / 395.1 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.02133/1.245, allocations: 5.265 MB / 0.5571 GB, free: 84.05 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/1.245, allocations: 11.56 kB / 0.5571 GB, free: 84.05 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0494/1.294, allocations: 6.934 MB / 0.5638 GB, free: 77.11 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02443/1.319, allocations: 6.827 MB / 0.5705 GB, free: 70.29 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003577/1.319, allocations: 172 kB / 0.5707 GB, free: 70.12 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003005/1.322, allocations: 327.8 kB / 0.571 GB, free: 69.8 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01903/1.341, allocations: 7.553 MB / 0.5784 GB, free: 62.25 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02954/1.371, allocations: 11.33 MB / 0.5894 GB, free: 49.77 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004293/1.371, allocations: 79.38 kB / 0.5895 GB, free: 49.69 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002554/1.374, allocations: 32 kB / 0.5895 GB, free: 49.66 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002444/1.376, allocations: 1.129 MB / 0.5906 GB, free: 48.54 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08482/1.461, allocations: 56.04 MB / 0.6454 GB, free: 6.891 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008003/1.469, allocations: 3.504 MB / 0.6488 GB, free: 3.238 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005216/1.475, allocations: 2.272 MB / 0.651 GB, free: 0.9531 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006973/1.475, allocations: 342.8 kB / 0.6513 GB, free: 0.5742 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.063e-05/1.475, allocations: 59.81 kB / 0.6514 GB, free: 0.5078 MB / 411.1 MB Notification: Performance of pre-optimization done (n=201): time 6.322e-06/1.475, allocations: 0 / 0.6514 GB, free: 0.5078 MB / 411.1 MB Notification: Performance of matching and sorting (n=228): time 0.3678/1.843, allocations: 19.95 MB / 0.6709 GB, free: 92.92 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.028e-05/1.843, allocations: 209.6 kB / 0.6711 GB, free: 92.7 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008057/1.851, allocations: 3.673 MB / 0.6747 GB, free: 92.32 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005213/1.852, allocations: 27.89 kB / 0.6747 GB, free: 92.29 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003304/1.855, allocations: 3.74 MB / 0.6783 GB, free: 90.09 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001502/1.857, allocations: 0.8347 MB / 0.6791 GB, free: 89.6 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007667/1.858, allocations: 3.938 kB / 0.6792 GB, free: 89.6 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0004494/1.858, allocations: 0.5964 MB / 0.6797 GB, free: 89.27 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004902/1.863, allocations: 2.178 MB / 0.6819 GB, free: 89.05 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007432/1.871, allocations: 6.255 MB / 0.688 GB, free: 82.75 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00779/1.878, allocations: 3.655 MB / 0.6915 GB, free: 81.66 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001449/1.879, allocations: 44.44 kB / 0.6916 GB, free: 81.66 MB / 411.1 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.02288/1.901, allocations: 8.11 MB / 0.6995 GB, free: 79.15 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001136/1.902, allocations: 67.78 kB / 0.6996 GB, free: 79.15 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002058/1.902, allocations: 147.8 kB / 0.6997 GB, free: 79.15 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004331/1.906, allocations: 0.9561 MB / 0.7006 GB, free: 78.96 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009781/1.916, allocations: 1.578 MB / 0.7022 GB, free: 78.77 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/1.929, allocations: 7.244 MB / 0.7093 GB, free: 74.26 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01076/1.94, allocations: 235.2 kB / 0.7095 GB, free: 74.23 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002256/1.943, allocations: 423.2 kB / 0.7099 GB, free: 74.18 MB / 411.1 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.002723/1.945, allocations: 484.8 kB / 0.7103 GB, free: 73.79 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01102/1.956, allocations: 3.748 MB / 0.714 GB, free: 72.07 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001592/1.958, allocations: 402.8 kB / 0.7144 GB, free: 71.67 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/1.969, allocations: 3.49 MB / 0.7178 GB, free: 68.8 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.555e-05/1.969, allocations: 26.66 kB / 0.7178 GB, free: 68.78 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-05/1.969, allocations: 4 kB / 0.7178 GB, free: 68.78 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.024e-05/1.969, allocations: 13.19 kB / 0.7178 GB, free: 68.77 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02637/1.996, allocations: 8.558 MB / 0.7262 GB, free: 61.8 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.8e-05/1.996, allocations: 4 kB / 0.7262 GB, free: 61.8 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003475/1.999, allocations: 357.1 kB / 0.7265 GB, free: 61.52 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003829/2.003, allocations: 0.6759 MB / 0.7272 GB, free: 61.03 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000476/2.004, allocations: 15.52 kB / 0.7272 GB, free: 61.02 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/2.014, allocations: 6.205 MB / 0.7333 GB, free: 55.22 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.355e-06/2.015, allocations: 0.625 kB / 0.7333 GB, free: 55.22 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/2.029, allocations: 6.33 MB / 0.7395 GB, free: 49.55 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003079/2.032, allocations: 0.7166 MB / 0.7402 GB, free: 48.87 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001381/2.033, allocations: 11.61 kB / 0.7402 GB, free: 48.86 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003789/2.037, allocations: 79.69 kB / 0.7402 GB, free: 48.81 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008489/2.038, allocations: 134.7 kB / 0.7404 GB, free: 48.73 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002686/2.038, allocations: 60.36 kB / 0.7404 GB, free: 48.67 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.006596/2.045, allocations: 2.489 MB / 0.7429 GB, free: 46.5 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.223e-06/2.045, allocations: 0 / 0.7429 GB, free: 46.5 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.009833/2.055, allocations: 1.037 MB / 0.7439 GB, free: 45.47 MB / 411.1 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.01569/2.07, allocations: 7.328 MB / 0.751 GB, free: 38.84 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01298/2.084, allocations: 5.466 MB / 0.7564 GB, free: 33.88 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/2.084, allocations: 0.75 kB / 0.7564 GB, free: 33.88 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004799/2.088, allocations: 1.961 MB / 0.7583 GB, free: 32.1 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004215/2.093, allocations: 442 kB / 0.7587 GB, free: 31.73 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03825/2.131, allocations: 11.47 MB / 0.7699 GB, free: 21.82 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00934/2.14, allocations: 4.116 MB / 0.7739 GB, free: 18.75 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005974/2.146, allocations: 2.503 MB / 0.7764 GB, free: 16.43 MB / 411.1 MB Notification: Performance of SimCode: time 1.413e-06/2.146, allocations: 0 / 0.7764 GB, free: 16.43 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.069/7.215, allocations: 142.8 MB / 0.9158 GB, free: 25.24 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat