Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009065/0.0009066, allocations: 96.23 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 169.7 kB / 16.58 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3174/0.3174, allocations: 43.54 MB / 314.6 MB, free: 8.738 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005125/0.0005126, allocations: 20 kB / 384 MB, free: 7.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1076, allocations: 58.84 MB / 442.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.2523/0.3599, allocations: 63.72 MB / 0.4947 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02606/0.386, allocations: 13.4 MB / 0.5078 GB, free: 348 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01058/0.3966, allocations: 304.1 kB / 0.5081 GB, free: 300 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009446/0.4061, allocations: 3.302 MB / 0.5113 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02793/0.4341, allocations: 9.743 MB / 0.5208 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004674/0.4388, allocations: 0.8087 MB / 0.5216 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.04701/0.4858, allocations: 34.97 MB / 0.5558 GB, free: 12.48 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0109/0.4967, allocations: 6.631 MB / 0.5622 GB, free: 5.824 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003737/0.5005, allocations: 1.72 MB / 0.5639 GB, free: 4.098 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004472/0.505, allocations: 2.648 MB / 0.5665 GB, free: 1.441 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00117/0.5062, allocations: 192 kB / 0.5667 GB, free: 1.254 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002924/0.5091, allocations: 0.9792 MB / 0.5677 GB, free: 280 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003159/0.5123, allocations: 2.26 MB / 0.5699 GB, free: 14.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001987/0.5143, allocations: 1.1 MB / 0.5709 GB, free: 12.9 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008835/0.5232, allocations: 7.556 MB / 0.5783 GB, free: 5.324 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.5232, allocations: 0 / 0.5783 GB, free: 5.324 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5232, allocations: 4 kB / 0.5783 GB, free: 5.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003426/0.5236, allocations: 0 / 0.5783 GB, free: 5.32 MB / 446.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.01206/0.5357, allocations: 5.442 MB / 0.5836 GB, free: 15.8 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.5357, allocations: 8.031 kB / 0.5836 GB, free: 15.79 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002193/0.5379, allocations: 0.888 MB / 0.5845 GB, free: 14.89 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03319/0.5711, allocations: 6.175 MB / 0.5905 GB, free: 8.699 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.5825, allocations: 4.666 MB / 0.5951 GB, free: 3.977 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003397/0.5829, allocations: 312.1 kB / 0.5954 GB, free: 3.668 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001685/0.5846, allocations: 451.5 kB / 0.5958 GB, free: 3.227 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03024/0.6148, allocations: 12.1 MB / 0.6076 GB, free: 6.355 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002784/0.6151, allocations: 55.58 kB / 0.6077 GB, free: 6.301 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001424/0.6166, allocations: 195.8 kB / 0.6079 GB, free: 6.109 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004192/0.6208, allocations: 2.203 MB / 0.61 GB, free: 3.906 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02187/0.6427, allocations: 10.25 MB / 0.62 GB, free: 9.637 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2668/0.9096, allocations: 47.01 MB / 0.6659 GB, free: 111.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009426/0.919, allocations: 4.47 MB / 0.6703 GB, free: 109.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002893/0.922, allocations: 2.516 MB / 0.6728 GB, free: 108.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01493/0.9369, allocations: 10.03 MB / 0.6826 GB, free: 103.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.937, allocations: 54.98 kB / 0.6826 GB, free: 103.4 MB / 494.1 MB Notification: Performance of pre-optimization done (n=192): time 6.032e-06/0.937, allocations: 0 / 0.6826 GB, free: 103.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=218): time 0.06017/0.9972, allocations: 19.55 MB / 0.7017 GB, free: 95.93 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.9973, allocations: 204.9 kB / 0.7019 GB, free: 95.71 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007141/1.004, allocations: 4.819 MB / 0.7066 GB, free: 94 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005088/1.005, allocations: 57.33 kB / 0.7067 GB, free: 93.94 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002739/1.008, allocations: 3.757 MB / 0.7103 GB, free: 91.06 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00121/1.009, allocations: 0.8288 MB / 0.7111 GB, free: 90.45 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000367/1.009, allocations: 131.6 kB / 0.7113 GB, free: 90.35 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003495/1.01, allocations: 0.582 MB / 0.7118 GB, free: 89.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004021/1.014, allocations: 2.337 MB / 0.7141 GB, free: 89 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00451/1.018, allocations: 6.289 MB / 0.7202 GB, free: 82.31 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004366/1.023, allocations: 3.753 MB / 0.7239 GB, free: 78.71 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.573e-05/1.023, allocations: 40 kB / 0.724 GB, free: 78.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.01296/1.036, allocations: 9.219 MB / 0.733 GB, free: 69.45 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.39e-05/1.036, allocations: 64 kB / 0.733 GB, free: 69.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.371e-05/1.036, allocations: 140.9 kB / 0.7332 GB, free: 69.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002583/1.039, allocations: 1.097 MB / 0.7342 GB, free: 68.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004182/1.043, allocations: 1.501 MB / 0.7357 GB, free: 66.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008853/1.052, allocations: 8.201 MB / 0.7437 GB, free: 58.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006164/1.058, allocations: 372.7 kB / 0.7441 GB, free: 57.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/1.059, allocations: 392 kB / 0.7444 GB, free: 57.43 MB / 494.1 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.005415/1.064, allocations: 2.589 MB / 0.747 GB, free: 54.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/1.066, allocations: 426.5 kB / 0.7474 GB, free: 54.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007343/1.073, allocations: 3.885 MB / 0.7512 GB, free: 50.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.001e-05/1.073, allocations: 24 kB / 0.7512 GB, free: 50.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.399e-05/1.073, allocations: 12.2 kB / 0.7512 GB, free: 50.47 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.654e-05/1.073, allocations: 7.969 kB / 0.7512 GB, free: 50.46 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01848/1.091, allocations: 9.763 MB / 0.7607 GB, free: 40.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/1.092, allocations: 4 kB / 0.7607 GB, free: 40.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/1.093, allocations: 352.9 kB / 0.7611 GB, free: 40.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002354/1.095, allocations: 0.8495 MB / 0.7619 GB, free: 39.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002263/1.096, allocations: 42.22 kB / 0.7619 GB, free: 39.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007397/1.103, allocations: 7.34 MB / 0.7691 GB, free: 31.83 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.103, allocations: 0 / 0.7691 GB, free: 31.83 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00898/1.112, allocations: 6.639 MB / 0.7756 GB, free: 25.16 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/1.114, allocations: 0.7571 MB / 0.7763 GB, free: 24.38 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001189/1.115, allocations: 39.16 kB / 0.7764 GB, free: 24.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00218/1.118, allocations: 123.8 kB / 0.7765 GB, free: 24.22 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000373/1.118, allocations: 133.8 kB / 0.7766 GB, free: 24.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/1.118, allocations: 63.98 kB / 0.7767 GB, free: 24.03 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005247/1.123, allocations: 3.035 MB / 0.7796 GB, free: 21 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.123, allocations: 3.938 kB / 0.7796 GB, free: 21 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008007/1.131, allocations: 1.208 MB / 0.7808 GB, free: 19.79 MB / 494.1 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.01077/1.142, allocations: 7.298 MB / 0.788 GB, free: 12.45 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009085/1.151, allocations: 5.917 MB / 0.7937 GB, free: 6.543 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/1.151, allocations: 4 kB / 0.7937 GB, free: 6.539 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003011/1.154, allocations: 2.077 MB / 0.7958 GB, free: 4.438 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005112/1.16, allocations: 0.5647 MB / 0.7963 GB, free: 3.879 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3112/1.471, allocations: 43.4 MB / 0.8387 GB, free: 159.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003846/1.475, allocations: 4 MB / 0.8426 GB, free: 158.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004751/1.479, allocations: 2.097 MB / 0.8447 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002497/1.482, allocations: 2.464 MB / 0.8471 GB, free: 157.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.012e-06/1.482, allocations: 3.469 kB / 0.8471 GB, free: 157.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.15/1.632, allocations: 93.62 MB / 0.9385 GB, free: 89.63 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/1.632, allocations: 213.9 kB / 0.9387 GB, free: 89.39 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.458/6.091, allocations: 4 kB / 0.9387 GB, free: 89.38 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat