Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.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.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",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.001133/0.001134, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.684/1.684, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000936/0.000936, allocations: 90.16 kB / 261.7 MB, free: 1.684 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.2195/0.2195, allocations: 43.48 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.749e-05/1.752e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1149, allocations: 58.85 MB / 477.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3829/0.4979, allocations: 107.1 MB / 0.5706 GB, free: 4.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.4982, allocations: 84.67 kB / 0.5707 GB, free: 4.227 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3248/0.823, allocations: 129 MB / 0.6967 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.094e-06/0.823, allocations: 0 / 0.6967 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003685/0.8234, allocations: 140 kB / 0.6968 GB, free: 11.17 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: 2235 * Number of variables: 2235 Notification: Performance of Generate backend data structure: time 0.02326/0.8467, allocations: 6.883 MB / 0.7035 GB, free: 4.211 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.8468, allocations: 8.031 kB / 0.7035 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3324/1.179, allocations: 9.408 MB / 0.7127 GB, free: 97.47 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02509/1.204, allocations: 8.992 MB / 0.7215 GB, free: 97.01 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005158/1.205, allocations: 207.6 kB / 0.7217 GB, free: 97.01 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003347/1.208, allocations: 394.6 kB / 0.7221 GB, free: 97 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01706/1.225, allocations: 10.02 MB / 0.7319 GB, free: 96.96 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03043/1.256, allocations: 14.25 MB / 0.7458 GB, free: 93.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005379/1.256, allocations: 83.83 kB / 0.7459 GB, free: 93.65 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002697/1.259, allocations: 35.62 kB / 0.7459 GB, free: 93.65 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002204/1.261, allocations: 1.542 MB / 0.7474 GB, free: 93.64 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07646/1.338, allocations: 68.27 MB / 0.8141 GB, free: 51.23 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007279/1.345, allocations: 6.62 MB / 0.8206 GB, free: 48.13 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005461/1.351, allocations: 5.156 MB / 0.8256 GB, free: 45.95 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02703/1.378, allocations: 17.74 MB / 0.8429 GB, free: 33.87 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/1.378, allocations: 74.45 kB / 0.843 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=310): time 6.833e-06/1.378, allocations: 0 / 0.843 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=384): time 0.08883/1.467, allocations: 43.21 MB / 0.8852 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002137/1.467, allocations: 321.3 kB / 0.8855 GB, free: 14 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007625/1.475, allocations: 4.337 MB / 0.8897 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001238/1.476, allocations: 29.7 kB / 0.8897 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003426/1.479, allocations: 4.491 MB / 0.8941 GB, free: 6.105 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002415/1.482, allocations: 1.345 MB / 0.8954 GB, free: 4.891 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005942/1.482, allocations: 4 kB / 0.8954 GB, free: 4.887 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005034/1.483, allocations: 0.6672 MB / 0.8961 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006664/1.489, allocations: 4.419 MB / 0.9004 GB, free: 372 kB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3119/1.801, allocations: 9.091 MB / 0.9093 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01311/1.815, allocations: 6.188 MB / 0.9153 GB, free: 100 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005154/1.815, allocations: 45 kB / 0.9154 GB, free: 100 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1117) (initialization): time 0.04341/1.859, allocations: 16.68 MB / 0.9317 GB, free: 99.74 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002656/1.859, allocations: 73.03 kB / 0.9317 GB, free: 99.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002761/1.859, allocations: 157.2 kB / 0.9319 GB, free: 99.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01393/1.873, allocations: 4.736 MB / 0.9365 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008536/1.882, allocations: 2.04 MB / 0.9385 GB, free: 99.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.031/1.913, allocations: 23.55 MB / 0.9615 GB, free: 94.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009316/1.922, allocations: 456.5 kB / 0.9619 GB, free: 94.73 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002679/1.925, allocations: 0.4962 MB / 0.9624 GB, free: 94.66 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 723 * Number of states: 0 () * Number of discrete variables: 57 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],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 (1014): * Single equations (assignments): 1008 * 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.002189/1.927, allocations: 0.5181 MB / 0.9629 GB, free: 94.34 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02184/1.949, allocations: 11.8 MB / 0.9745 GB, free: 90.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0025/1.951, allocations: 0.5124 MB / 0.975 GB, free: 90.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02579/1.977, allocations: 12.09 MB / 0.9868 GB, free: 86.82 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.764e-05/1.977, allocations: 40.38 kB / 0.9868 GB, free: 86.82 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.342e-05/1.977, allocations: 20.66 kB / 0.9868 GB, free: 86.81 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-05/1.978, allocations: 20.62 kB / 0.9868 GB, free: 86.81 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03914/2.017, allocations: 20.77 MB / 1.007 GB, free: 78.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.787e-05/2.017, allocations: 3.703 kB / 1.007 GB, free: 78.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0038/2.021, allocations: 0.6757 MB / 1.008 GB, free: 77.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01223/2.033, allocations: 4.493 MB / 1.012 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001167/2.034, allocations: 15.23 kB / 1.012 GB, free: 74.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02807/2.062, allocations: 23.04 MB / 1.035 GB, free: 55.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/2.062, allocations: 3.891 kB / 1.035 GB, free: 55.05 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02849/2.091, allocations: 18.2 MB / 1.052 GB, free: 38.51 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004218/2.095, allocations: 1.32 MB / 1.054 GB, free: 37.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001769/2.097, allocations: 4 kB / 1.054 GB, free: 37.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004118/2.101, allocations: 303.9 kB / 1.054 GB, free: 36.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009144/2.102, allocations: 242.7 kB / 1.054 GB, free: 36.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003256/2.102, allocations: 95.98 kB / 1.054 GB, free: 36.55 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005255/2.107, allocations: 2.966 MB / 1.057 GB, free: 33.61 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.1e-07/2.107, allocations: 4 kB / 1.057 GB, free: 33.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01073/2.118, allocations: 1.633 MB / 1.059 GB, free: 31.98 MB / 0.5105 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 (295): * Single equations (assignments): 289 * 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.02907/2.147, allocations: 19.01 MB / 1.077 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02064/2.168, allocations: 11.48 MB / 1.089 GB, free: 1.395 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/2.168, allocations: 2.844 kB / 1.089 GB, free: 1.395 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.3306/2.499, allocations: 5.599 MB / 1.094 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005911/2.505, allocations: 0.5656 MB / 1.095 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05304/2.558, allocations: 16.46 MB / 1.111 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006939/2.565, allocations: 5.064 MB / 1.116 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008141/2.573, allocations: 2.849 MB / 1.118 GB, free: 112 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006131/2.579, allocations: 3.165 MB / 1.122 GB, free: 112 MB / 0.5261 GB Notification: Performance of SimCode: time 1.233e-06/2.579, allocations: 2.969 kB / 1.122 GB, free: 112 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2244/2.803, allocations: 138.3 MB / 1.257 GB, free: 27.93 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001312/2.804, allocations: 148.7 kB / 1.257 GB, free: 27.74 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.16/8.964, allocations: 4 kB / 1.257 GB, free: 27.73 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat