Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_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.001718/0.001718, allocations: 182.8 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.849/1.849, allocations: 205.2 MB / 218.9 MB, free: 9.215 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.0009729/0.0009729, allocations: 88.27 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4069/0.4069, allocations: 43.47 MB / 358.6 MB, free: 51.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.383e-05/3.385e-05, allocations: 4 kB / 425.4 MB, free: 8.129 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1456, allocations: 58.86 MB / 484.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.5942, allocations: 110.3 MB / 0.5806 GB, free: 11.56 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5945, allocations: 78.45 kB / 0.5807 GB, free: 11.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.76/1.355, allocations: 164.3 MB / 0.7411 GB, free: 79.77 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.084e-06/1.355, allocations: 0 / 0.7411 GB, free: 79.77 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004244/1.355, allocations: 162 kB / 0.7413 GB, free: 79.77 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.03101/1.386, allocations: 7.513 MB / 0.7486 GB, free: 76.64 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.066e-05/1.386, allocations: 10.31 kB / 0.7486 GB, free: 76.64 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007543/1.394, allocations: 1.55 MB / 0.7502 GB, free: 76.53 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04127/1.435, allocations: 10.05 MB / 0.76 GB, free: 75.93 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02285/1.458, allocations: 8.424 MB / 0.7682 GB, free: 74.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006364/1.459, allocations: 0.6251 MB / 0.7688 GB, free: 74.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004872/1.463, allocations: 0.8242 MB / 0.7696 GB, free: 74.79 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0496/1.513, allocations: 20.37 MB / 0.7895 GB, free: 67.55 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005035/1.514, allocations: 90.28 kB / 0.7896 GB, free: 67.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004103/1.518, allocations: 393.1 kB / 0.79 GB, free: 67.29 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003827/1.522, allocations: 2.108 MB / 0.792 GB, free: 66.89 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03667/1.558, allocations: 17.77 MB / 0.8094 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4793/2.038, allocations: 85.16 MB / 0.8926 GB, free: 81.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01726/2.055, allocations: 7.971 MB / 0.9003 GB, free: 80.12 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006725/2.062, allocations: 5.082 MB / 0.9053 GB, free: 80.07 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002717/2.062, allocations: 66.09 kB / 0.9054 GB, free: 80.07 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.671e-05/2.062, allocations: 72.81 kB / 0.9054 GB, free: 80.03 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=450): time 7.995e-06/2.062, allocations: 3.562 kB / 0.9054 GB, free: 80.03 MB / 0.5105 GB Notification: Performance of matching and sorting (n=501): time 0.09038/2.153, allocations: 37.65 MB / 0.9422 GB, free: 75.18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/2.153, allocations: 228.5 kB / 0.9424 GB, free: 74.96 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00951/2.162, allocations: 5.705 MB / 0.948 GB, free: 74.43 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001091/2.163, allocations: 95 kB / 0.9481 GB, free: 74.39 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003546/2.167, allocations: 5.691 MB / 0.9536 GB, free: 71.27 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003194/2.17, allocations: 1.82 MB / 0.9554 GB, free: 70.19 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/2.172, allocations: 221 kB / 0.9556 GB, free: 70.19 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0009351/2.173, allocations: 0.7959 MB / 0.9564 GB, free: 69.86 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007648/2.18, allocations: 4.81 MB / 0.9611 GB, free: 69.27 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01267/2.193, allocations: 10.96 MB / 0.9718 GB, free: 59.49 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01214/2.205, allocations: 7.305 MB / 0.9789 GB, free: 57.32 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002308/2.205, allocations: 60.69 kB / 0.979 GB, free: 57.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1490) (initialization): time 0.03496/2.24, allocations: 16.97 MB / 0.9956 GB, free: 52.15 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002076/2.241, allocations: 95.5 kB / 0.9957 GB, free: 52.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003969/2.241, allocations: 215 kB / 0.9959 GB, free: 52.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004658/2.246, allocations: 1.724 MB / 0.9976 GB, free: 51.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01028/2.256, allocations: 2.603 MB / 1 GB, free: 51.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01467/2.271, allocations: 14.01 MB / 1.014 GB, free: 42.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01149/2.282, allocations: 0.6702 MB / 1.014 GB, free: 42.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003946/2.286, allocations: 0.6324 MB / 1.015 GB, free: 42.33 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * Number of states: 0 () * Number of discrete variables: 51 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1366): * Single equations (assignments): 1353 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00499/2.291, allocations: 0.9286 MB / 1.016 GB, free: 41.58 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002004/2.293, allocations: 0.6205 MB / 1.017 GB, free: 41.15 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01613/2.309, allocations: 9.606 MB / 1.026 GB, free: 33.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000122/2.31, allocations: 97.53 kB / 1.026 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.132e-05/2.31, allocations: 13 kB / 1.026 GB, free: 33 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.067e-05/2.31, allocations: 26.36 kB / 1.026 GB, free: 33 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04618/2.356, allocations: 21.6 MB / 1.047 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.345e-05/2.356, allocations: 8 kB / 1.047 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004113/2.36, allocations: 0.8014 MB / 1.048 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003644/2.364, allocations: 1.352 MB / 1.049 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001111/2.365, allocations: 93.52 kB / 1.049 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/2.377, allocations: 12.87 MB / 1.062 GB, free: 1.066 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/2.377, allocations: 15.94 kB / 1.062 GB, free: 1.051 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0269/2.404, allocations: 17.14 MB / 1.079 GB, free: 1.125 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00658/2.411, allocations: 1.453 MB / 1.08 GB, free: 0 / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003308/2.414, allocations: 112.6 kB / 1.08 GB, free: 0 / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007146/2.422, allocations: 399.3 kB / 1.081 GB, free: 0 / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001619/2.423, allocations: 314.3 kB / 1.081 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004736/2.424, allocations: 130.3 kB / 1.081 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.009196/2.433, allocations: 3.948 MB / 1.085 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.132e-06/2.433, allocations: 0 / 1.085 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01589/2.449, allocations: 2.307 MB / 1.087 GB, free: 10.72 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (385): * Single equations (assignments): 372 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4139/2.863, allocations: 19.88 MB / 1.107 GB, free: 101 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02209/2.885, allocations: 11.99 MB / 1.118 GB, free: 100.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.869e-05/2.885, allocations: 4.688 kB / 1.118 GB, free: 100.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00819/2.893, allocations: 4.853 MB / 1.123 GB, free: 100 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005365/2.899, allocations: 0.7314 MB / 1.124 GB, free: 99.98 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05867/2.957, allocations: 20.19 MB / 1.143 GB, free: 96.61 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01311/2.971, allocations: 6.283 MB / 1.15 GB, free: 94.88 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01187/2.982, allocations: 4.115 MB / 1.154 GB, free: 94.81 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009347/2.992, allocations: 4.09 MB / 1.158 GB, free: 91.43 MB / 0.5417 GB Notification: Performance of SimCode: time 1.223e-06/2.992, allocations: 0 / 1.158 GB, free: 91.43 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5551/3.547, allocations: 149.9 MB / 1.304 GB, free: 75.86 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/3.547, allocations: 179.9 kB / 1.304 GB, free: 75.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.233/10.78, allocations: 2.953 kB / 1.304 GB, free: 75.64 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat