Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 221.5 MB / 230.7 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 94.83 kB / 281.6 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2079/0.2079, allocations: 44.14 MB / 376.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.631e-05/1.648e-05, allocations: 224 / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1315, allocations: 61.92 MB / 0.4948 GB, free: 1.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.493/0.6246, allocations: 108.2 MB / 0.6004 GB, free: 4.246 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.6249, allocations: 87.94 kB / 0.6005 GB, free: 4.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7023/1.327, allocations: 126.5 MB / 0.724 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.535e-06/1.327, allocations: 0 / 0.724 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005342/1.328, allocations: 133 kB / 0.7241 GB, free: 103.6 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: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.02627/1.354, allocations: 6.714 MB / 0.7307 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.463e-05/1.354, allocations: 11.61 kB / 0.7307 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03824/1.392, allocations: 9.378 MB / 0.7399 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02312/1.416, allocations: 8.427 MB / 0.7481 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00044/1.416, allocations: 198.1 kB / 0.7483 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004062/1.42, allocations: 375.5 kB / 0.7486 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01984/1.44, allocations: 9.695 MB / 0.7581 GB, free: 98.83 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03481/1.475, allocations: 13.81 MB / 0.7716 GB, free: 91.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005511/1.475, allocations: 91.84 kB / 0.7717 GB, free: 91.79 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00402/1.48, allocations: 40.31 kB / 0.7717 GB, free: 91.79 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002654/1.482, allocations: 1.471 MB / 0.7732 GB, free: 91.54 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08757/1.57, allocations: 66.78 MB / 0.8384 GB, free: 34.01 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007165/1.577, allocations: 6.402 MB / 0.8446 GB, free: 27.46 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005042/1.582, allocations: 4.995 MB / 0.8495 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02404/1.606, allocations: 17.13 MB / 0.8662 GB, free: 5.223 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.297e-05/1.606, allocations: 64.5 kB / 0.8663 GB, free: 5.152 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=289): time 7.814e-06/1.606, allocations: 0 / 0.8663 GB, free: 5.152 MB / 0.4948 GB Notification: Performance of matching and sorting (n=363): time 0.5102/2.117, allocations: 41.6 MB / 0.9069 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/2.117, allocations: 323.4 kB / 0.9072 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01288/2.13, allocations: 4.215 MB / 0.9113 GB, free: 123 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001572/2.131, allocations: 26.58 kB / 0.9114 GB, free: 123 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005598/2.137, allocations: 4.351 MB / 0.9156 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00289/2.14, allocations: 1.282 MB / 0.9169 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/2.141, allocations: 3.969 kB / 0.9169 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006184/2.142, allocations: 0.6511 MB / 0.9175 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008376/2.15, allocations: 4.246 MB / 0.9217 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0124/2.162, allocations: 8.626 MB / 0.9301 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/2.173, allocations: 5.976 MB / 0.9359 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002476/2.173, allocations: 43.22 kB / 0.936 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.04138/2.214, allocations: 16.22 MB / 0.9518 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000387/2.215, allocations: 70.84 kB / 0.9519 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005171/2.215, allocations: 158.9 kB / 0.952 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01414/2.23, allocations: 4.717 MB / 0.9566 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008255/2.238, allocations: 1.956 MB / 0.9585 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03165/2.27, allocations: 23.59 MB / 0.9816 GB, free: 99 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009936/2.28, allocations: 445.1 kB / 0.982 GB, free: 98.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00255/2.282, allocations: 493.6 kB / 0.9825 GB, free: 98.91 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 700 * Number of states: 0 () * Number of discrete variables: 59 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (970): * Single equations (assignments): 964 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002779/2.285, allocations: 0.5039 MB / 0.983 GB, free: 98.5 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02225/2.307, allocations: 11.51 MB / 0.9942 GB, free: 94.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00257/2.31, allocations: 0.4945 MB / 0.9947 GB, free: 94.62 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02814/2.338, allocations: 11.74 MB / 1.006 GB, free: 89.98 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.272e-05/2.338, allocations: 41.02 kB / 1.006 GB, free: 89.94 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.132e-05/2.338, allocations: 18.53 kB / 1.006 GB, free: 89.93 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001348/2.338, allocations: 16.97 kB / 1.006 GB, free: 89.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0512/2.39, allocations: 20.11 MB / 1.026 GB, free: 74.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.292e-05/2.39, allocations: 0 / 1.026 GB, free: 74.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003855/2.394, allocations: 0.6318 MB / 1.026 GB, free: 73.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01342/2.407, allocations: 4.491 MB / 1.031 GB, free: 68.91 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001338/2.408, allocations: 11.98 kB / 1.031 GB, free: 68.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03149/2.44, allocations: 23 MB / 1.053 GB, free: 45.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/2.44, allocations: 4 kB / 1.053 GB, free: 45.58 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03431/2.474, allocations: 17.65 MB / 1.071 GB, free: 27.84 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/2.476, allocations: 0.5141 MB / 1.071 GB, free: 27.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002827/2.479, allocations: 11.52 kB / 1.071 GB, free: 27.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005198/2.484, allocations: 281.8 kB / 1.071 GB, free: 27.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001749/2.486, allocations: 234.6 kB / 1.072 GB, free: 26.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001141/2.487, allocations: 95.45 kB / 1.072 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00599/2.493, allocations: 2.877 MB / 1.074 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.71e-07/2.493, allocations: 0 / 1.074 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01219/2.506, allocations: 1.578 MB / 1.076 GB, free: 22.26 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 267 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03688/2.543, allocations: 18.44 MB / 1.094 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.3596/2.902, allocations: 11.08 MB / 1.105 GB, free: 134.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/2.902, allocations: 0 / 1.105 GB, free: 134.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01313/2.915, allocations: 5.428 MB / 1.11 GB, free: 134.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005554/2.921, allocations: 0.5753 MB / 1.111 GB, free: 134.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04901/2.97, allocations: 15.89 MB / 1.126 GB, free: 131.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01172/2.982, allocations: 4.912 MB / 1.131 GB, free: 131 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009371/2.991, allocations: 2.753 MB / 1.134 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006878/2.998, allocations: 3.057 MB / 1.137 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of SimCode: time 1.433e-06/2.998, allocations: 2.844 kB / 1.137 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2095/3.208, allocations: 134.7 MB / 1.268 GB, free: 37.27 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/3.208, allocations: 145.1 kB / 1.268 GB, free: 37.08 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.558/9.766, allocations: 0 / 1.268 GB, free: 37.08 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat