Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.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.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_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.002359/0.002359, allocations: 182.5 kB / 16.4 MB, free: 5.75 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.043/2.043, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001181/0.001181, allocations: 93.55 kB / 270.9 MB, free: 8.371 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.5251/0.5251, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004593/0.0004595, allocations: 12 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1293, allocations: 58.85 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.397/0.5264, allocations: 60.12 MB / 0.5375 GB, free: 7.746 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03832/0.5648, allocations: 14.02 MB / 0.5512 GB, free: 14.19 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01525/0.5801, allocations: 301.8 kB / 0.5515 GB, free: 14.14 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01135/0.5915, allocations: 3.012 MB / 0.5545 GB, free: 13.16 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03586/0.6274, allocations: 8.588 MB / 0.5628 GB, free: 9.051 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005883/0.6333, allocations: 0.8049 MB / 0.5636 GB, free: 8.719 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07319/0.7066, allocations: 26.63 MB / 0.5896 GB, free: 4.715 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01514/0.7218, allocations: 6.584 MB / 0.5961 GB, free: 14.1 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003827/0.7256, allocations: 1.398 MB / 0.5974 GB, free: 12.7 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004435/0.7301, allocations: 1.846 MB / 0.5992 GB, free: 10.85 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001358/0.7315, allocations: 192 kB / 0.5994 GB, free: 10.66 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003662/0.7352, allocations: 0.9559 MB / 0.6004 GB, free: 9.703 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00406/0.7393, allocations: 2.1 MB / 0.6024 GB, free: 7.598 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002506/0.7419, allocations: 1.096 MB / 0.6035 GB, free: 6.492 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01324/0.7552, allocations: 7.544 MB / 0.6108 GB, free: 14.93 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.7552, allocations: 0 / 0.6108 GB, free: 14.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.7552, allocations: 0 / 0.6108 GB, free: 14.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003149/0.7556, allocations: 4 kB / 0.6108 GB, free: 14.92 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.0204/0.776, allocations: 5.555 MB / 0.6163 GB, free: 9.293 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.776, allocations: 12.03 kB / 0.6163 GB, free: 9.281 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003385/0.7794, allocations: 0.8763 MB / 0.6171 GB, free: 8.391 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08975/0.8692, allocations: 8.044 MB / 0.625 GB, free: 336 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01434/0.8836, allocations: 4.256 MB / 0.6292 GB, free: 12.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004353/0.8841, allocations: 316.1 kB / 0.6295 GB, free: 11.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002277/0.8864, allocations: 451.5 kB / 0.6299 GB, free: 11.26 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03695/0.9234, allocations: 12.24 MB / 0.6418 GB, free: 14.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002817/0.9237, allocations: 55.5 kB / 0.6419 GB, free: 14.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001601/0.9254, allocations: 195.8 kB / 0.6421 GB, free: 14 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006979/0.9324, allocations: 2.206 MB / 0.6442 GB, free: 11.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03529/0.9677, allocations: 10.42 MB / 0.6544 GB, free: 1.355 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4219/1.39, allocations: 47.17 MB / 0.7005 GB, free: 106.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01884/1.409, allocations: 4.487 MB / 0.7049 GB, free: 106.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02555/1.434, allocations: 10.13 MB / 0.7147 GB, free: 101.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.02e-05/1.434, allocations: 57.06 kB / 0.7148 GB, free: 101.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=192): time 5.62e-06/1.434, allocations: 0 / 0.7148 GB, free: 101.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=218): time 0.09417/1.528, allocations: 19.85 MB / 0.7342 GB, free: 93.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.704e-05/1.529, allocations: 202.2 kB / 0.7344 GB, free: 93.39 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01348/1.542, allocations: 5.065 MB / 0.7393 GB, free: 91.61 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005583/1.543, allocations: 57.52 kB / 0.7394 GB, free: 91.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003511/1.546, allocations: 3.624 MB / 0.7429 GB, free: 88.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001457/1.548, allocations: 0.8344 MB / 0.7437 GB, free: 88.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007984/1.549, allocations: 126 kB / 0.7439 GB, free: 87.97 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005634/1.549, allocations: 0.5883 MB / 0.7444 GB, free: 87.54 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006334/1.555, allocations: 2.346 MB / 0.7467 GB, free: 86.75 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008888/1.564, allocations: 6.262 MB / 0.7528 GB, free: 80.58 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008868/1.573, allocations: 3.745 MB / 0.7565 GB, free: 79.03 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001448/1.574, allocations: 40.44 kB / 0.7565 GB, free: 79.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.0254/1.599, allocations: 9.039 MB / 0.7654 GB, free: 75.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/1.599, allocations: 61.91 kB / 0.7654 GB, free: 75.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002256/1.599, allocations: 140.5 kB / 0.7656 GB, free: 75.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005471/1.605, allocations: 1.1 MB / 0.7666 GB, free: 74.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009068/1.614, allocations: 1.509 MB / 0.7681 GB, free: 72.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0152/1.629, allocations: 8.391 MB / 0.7763 GB, free: 64.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007438/1.637, allocations: 363.5 kB / 0.7766 GB, free: 63.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001226/1.638, allocations: 396 kB / 0.777 GB, free: 63.34 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (794): * Single equations (assignments): 789 * 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.006292/1.644, allocations: 2.573 MB / 0.7795 GB, free: 60.76 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001317/1.646, allocations: 430.4 kB / 0.7799 GB, free: 60.33 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/1.657, allocations: 3.885 MB / 0.7837 GB, free: 56.43 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.47e-05/1.657, allocations: 27.98 kB / 0.7838 GB, free: 56.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.182e-05/1.657, allocations: 8 kB / 0.7838 GB, free: 56.39 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.086e-05/1.657, allocations: 11.91 kB / 0.7838 GB, free: 56.38 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02859/1.686, allocations: 9.794 MB / 0.7933 GB, free: 46.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.489e-05/1.686, allocations: 3.984 kB / 0.7934 GB, free: 46.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003396/1.69, allocations: 348.3 kB / 0.7937 GB, free: 46.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004816/1.694, allocations: 0.8495 MB / 0.7945 GB, free: 45.37 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004652/1.695, allocations: 35.98 kB / 0.7945 GB, free: 45.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01395/1.709, allocations: 7.536 MB / 0.8019 GB, free: 37.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/1.709, allocations: 7.953 kB / 0.8019 GB, free: 37.53 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01722/1.726, allocations: 6.759 MB / 0.8085 GB, free: 30.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002867/1.729, allocations: 0.7765 MB / 0.8093 GB, free: 29.91 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001339/1.731, allocations: 35.95 kB / 0.8093 GB, free: 29.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003724/1.734, allocations: 129.5 kB / 0.8094 GB, free: 29.75 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008015/1.735, allocations: 129.8 kB / 0.8096 GB, free: 29.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002376/1.735, allocations: 59.11 kB / 0.8096 GB, free: 29.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007423/1.743, allocations: 3.235 MB / 0.8128 GB, free: 26.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.743, allocations: 0 / 0.8128 GB, free: 26.34 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008294/1.751, allocations: 1.224 MB / 0.814 GB, free: 25.12 MB / 490.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 () * Number of clocked 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.01783/1.769, allocations: 7.651 MB / 0.8214 GB, free: 17.42 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01421/1.783, allocations: 5.913 MB / 0.8272 GB, free: 11.52 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.559e-06/1.783, allocations: 0 / 0.8272 GB, free: 11.52 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005563/1.789, allocations: 2.078 MB / 0.8292 GB, free: 9.41 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004797/1.794, allocations: 0.5284 MB / 0.8298 GB, free: 8.891 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5244/2.318, allocations: 139.8 MB / 0.9663 GB, free: 69.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009222/2.328, allocations: 4.117 MB / 0.9703 GB, free: 67.63 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005919/2.334, allocations: 2.513 MB / 0.9728 GB, free: 65.61 MB / 0.5105 GB Notification: Performance of SimCode: time 1.583e-06/2.334, allocations: 0 / 0.9728 GB, free: 65.61 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.279/7.613, allocations: 145.9 MB / 1.115 GB, free: 135.8 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat