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.001595/0.001594, allocations: 182.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001142, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.874e-05/2.876e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4499/0.5518, allocations: 98.46 MB / 467.6 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003186/0.5521, allocations: 96.64 kB / 467.7 MB, free: 10.95 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7604/1.313, allocations: 107.1 MB / 0.5614 GB, free: 88.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.313, allocations: 0 / 0.5614 GB, free: 88.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004121/1.313, allocations: 107.3 kB / 0.5615 GB, free: 88.99 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.02228/1.335, allocations: 5.272 MB / 0.5666 GB, free: 86.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.745e-05/1.335, allocations: 10.44 kB / 0.5666 GB, free: 86.84 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004644/1.34, allocations: 0.9338 MB / 0.5676 GB, free: 86.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05193/1.392, allocations: 6.943 MB / 0.5743 GB, free: 86.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02555/1.418, allocations: 6.825 MB / 0.581 GB, free: 85.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005673/1.418, allocations: 404.3 kB / 0.5814 GB, free: 85.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003371/1.422, allocations: 0.5358 MB / 0.5819 GB, free: 85.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03961/1.461, allocations: 12.66 MB / 0.5943 GB, free: 78.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004086/1.462, allocations: 78.39 kB / 0.5944 GB, free: 78.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002585/1.464, allocations: 255.8 kB / 0.5946 GB, free: 78.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002491/1.467, allocations: 1.131 MB / 0.5957 GB, free: 78.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03144/1.498, allocations: 10.3 MB / 0.6058 GB, free: 71.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08477/1.583, allocations: 57.19 MB / 0.6616 GB, free: 14.69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01757/1.601, allocations: 4.363 MB / 0.6659 GB, free: 10.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004832/1.606, allocations: 2.383 MB / 0.6682 GB, free: 7.797 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02683/1.633, allocations: 9.972 MB / 0.6779 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.763e-05/1.633, allocations: 51.88 kB / 0.678 GB, free: 13.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 6.983e-06/1.633, allocations: 0 / 0.678 GB, free: 13.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.3948/2.028, allocations: 16.19 MB / 0.6938 GB, free: 96.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/2.028, allocations: 201.5 kB / 0.694 GB, free: 96.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01385/2.042, allocations: 4.207 MB / 0.6981 GB, free: 95.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006004/2.042, allocations: 58.23 kB / 0.6982 GB, free: 95.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003875/2.046, allocations: 3.64 MB / 0.7017 GB, free: 94.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001562/2.048, allocations: 0.8275 MB / 0.7025 GB, free: 93.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000872/2.049, allocations: 135.3 kB / 0.7027 GB, free: 93.83 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005023/2.049, allocations: 0.5902 MB / 0.7032 GB, free: 93.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006539/2.056, allocations: 2.188 MB / 0.7054 GB, free: 93.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01038/2.066, allocations: 6.146 MB / 0.7114 GB, free: 88.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/2.077, allocations: 3.651 MB / 0.7149 GB, free: 88.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002699/2.077, allocations: 37.31 kB / 0.715 GB, free: 88.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=860) (initialization): time 0.02642/2.103, allocations: 8.663 MB / 0.7234 GB, free: 86.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000158/2.104, allocations: 62.59 kB / 0.7235 GB, free: 86.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002269/2.104, allocations: 141.9 kB / 0.7236 GB, free: 86.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00458/2.108, allocations: 0.9286 MB / 0.7245 GB, free: 86.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01002/2.119, allocations: 1.524 MB / 0.726 GB, free: 86.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01357/2.132, allocations: 7.408 MB / 0.7333 GB, free: 81.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008599/2.141, allocations: 360.8 kB / 0.7336 GB, free: 81.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001889/2.143, allocations: 397.9 kB / 0.734 GB, free: 81.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 638 * 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 (798): * Single equations (assignments): 793 * 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.002606/2.145, allocations: 0.6114 MB / 0.7346 GB, free: 81.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001474/2.147, allocations: 427.2 kB / 0.735 GB, free: 81.04 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/2.158, allocations: 3.543 MB / 0.7384 GB, free: 79.69 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-05/2.158, allocations: 22.69 kB / 0.7385 GB, free: 79.69 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.519e-05/2.158, allocations: 6.844 kB / 0.7385 GB, free: 79.69 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.364e-05/2.158, allocations: 13.64 kB / 0.7385 GB, free: 79.69 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02957/2.187, allocations: 9.242 MB / 0.7475 GB, free: 76.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.624e-05/2.187, allocations: 0 / 0.7475 GB, free: 76.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00344/2.191, allocations: 345.7 kB / 0.7478 GB, free: 76.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003934/2.195, allocations: 0.6941 MB / 0.7485 GB, free: 76.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005476/2.196, allocations: 36.41 kB / 0.7485 GB, free: 76.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01224/2.208, allocations: 6.551 MB / 0.7549 GB, free: 71.81 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/2.208, allocations: 7.891 kB / 0.755 GB, free: 71.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01565/2.223, allocations: 6.254 MB / 0.7611 GB, free: 69.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003343/2.227, allocations: 0.7369 MB / 0.7618 GB, free: 68.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001728/2.229, allocations: 38.22 kB / 0.7618 GB, free: 68.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004153/2.233, allocations: 111.7 kB / 0.7619 GB, free: 68.56 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008433/2.234, allocations: 124.3 kB / 0.762 GB, free: 68.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002261/2.234, allocations: 56.81 kB / 0.7621 GB, free: 68.53 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008682/2.243, allocations: 2.968 MB / 0.765 GB, free: 67.49 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.653e-06/2.243, allocations: 0 / 0.765 GB, free: 67.49 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009849/2.253, allocations: 1.19 MB / 0.7662 GB, free: 67.36 MB / 426.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 (169): * Single equations (assignments): 164 * 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.01712/2.27, allocations: 7.12 MB / 0.7731 GB, free: 62.22 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01445/2.284, allocations: 5.65 MB / 0.7786 GB, free: 57.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/2.284, allocations: 4 kB / 0.7786 GB, free: 57.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005366/2.29, allocations: 1.963 MB / 0.7805 GB, free: 55.25 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005048/2.295, allocations: 0.5349 MB / 0.7811 GB, free: 54.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04005/2.335, allocations: 11.65 MB / 0.7924 GB, free: 44.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009786/2.345, allocations: 4.107 MB / 0.7965 GB, free: 41.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006431/2.351, allocations: 2.525 MB / 0.7989 GB, free: 39.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.794e-06/2.351, allocations: 0 / 0.7989 GB, free: 39.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.029/7.381, allocations: 145.1 MB / 0.9406 GB, free: 53.23 MB / 442.7 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