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.001591/0.001591, 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.666/1.666, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0009045/0.0009048, allocations: 89.52 kB / 267 MB, free: 9.281 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.422/0.422, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.75e-05/4.753e-05, allocations: 7.984 kB / 425.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1542, allocations: 58.85 MB / 484.3 MB, free: 13.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5267/0.6809, allocations: 107.8 MB / 0.5782 GB, free: 14.07 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003465/0.6813, allocations: 82.33 kB / 0.5782 GB, free: 14.03 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7403/1.422, allocations: 132.1 MB / 0.7072 GB, free: 79.25 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.834e-06/1.422, allocations: 3.5 kB / 0.7072 GB, free: 79.25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004458/1.422, allocations: 138 kB / 0.7073 GB, free: 79.25 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.0228/1.445, allocations: 6.883 MB / 0.7141 GB, free: 76.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/1.445, allocations: 8.938 kB / 0.7141 GB, free: 76.7 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005432/1.45, allocations: 1.117 MB / 0.7152 GB, free: 76.61 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0366/1.487, allocations: 9.42 MB / 0.7244 GB, free: 76.16 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02257/1.51, allocations: 9.002 MB / 0.7332 GB, free: 75.25 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006947/1.51, allocations: 482.9 kB / 0.7336 GB, free: 75.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00418/1.515, allocations: 0.6392 MB / 0.7342 GB, free: 75.23 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04885/1.563, allocations: 16.24 MB / 0.7501 GB, free: 71.89 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006829/1.564, allocations: 88.66 kB / 0.7502 GB, free: 71.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003717/1.568, allocations: 306.6 kB / 0.7505 GB, free: 71.87 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003067/1.571, allocations: 1.54 MB / 0.752 GB, free: 71.86 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03133/1.602, allocations: 14.08 MB / 0.7657 GB, free: 71.13 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.122/1.724, allocations: 70.64 MB / 0.8347 GB, free: 38.23 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01885/1.743, allocations: 7.353 MB / 0.8419 GB, free: 35.74 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006942/1.75, allocations: 5.246 MB / 0.847 GB, free: 33.52 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03078/1.781, allocations: 17.91 MB / 0.8645 GB, free: 18.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.029e-05/1.781, allocations: 71.8 kB / 0.8646 GB, free: 18.34 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=310): time 7.214e-06/1.781, allocations: 0 / 0.8646 GB, free: 18.34 MB / 0.5105 GB Notification: Performance of matching and sorting (n=404): time 0.4732/2.254, allocations: 51.65 MB / 0.915 GB, free: 86.76 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001507/2.255, allocations: 326.3 kB / 0.9153 GB, free: 86.41 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/2.266, allocations: 4.926 MB / 0.9201 GB, free: 85.98 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001559/2.268, allocations: 89.3 kB / 0.9202 GB, free: 85.95 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004231/2.272, allocations: 4.42 MB / 0.9245 GB, free: 84.09 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003028/2.275, allocations: 1.462 MB / 0.926 GB, free: 83.22 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/2.276, allocations: 171.7 kB / 0.9261 GB, free: 83.22 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005734/2.277, allocations: 0.6721 MB / 0.9268 GB, free: 82.89 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009154/2.286, allocations: 4.916 MB / 0.9316 GB, free: 82.87 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01367/2.3, allocations: 9.32 MB / 0.9407 GB, free: 77.28 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01319/2.313, allocations: 6.705 MB / 0.9472 GB, free: 75.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003122/2.313, allocations: 42.78 kB / 0.9473 GB, free: 75.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.04425/2.357, allocations: 18.44 MB / 0.9653 GB, free: 70.34 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002192/2.358, allocations: 70.38 kB / 0.9654 GB, free: 70.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002963/2.358, allocations: 150.7 kB / 0.9655 GB, free: 70.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01447/2.373, allocations: 4.773 MB / 0.9702 GB, free: 69.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009494/2.382, allocations: 2.024 MB / 0.9721 GB, free: 69.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03469/2.417, allocations: 25.4 MB / 0.9969 GB, free: 57.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00984/2.427, allocations: 0.618 MB / 0.9975 GB, free: 57.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002537/2.429, allocations: 491.8 kB / 0.998 GB, free: 57.09 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * 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 (1004): * Single equations (assignments): 998 * 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%) 15,(14,44.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002882/2.432, allocations: 0.737 MB / 0.9987 GB, free: 56.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00158/2.434, allocations: 0.5458 MB / 0.9993 GB, free: 56.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02667/2.46, allocations: 13.34 MB / 1.012 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.242e-05/2.461, allocations: 39.19 kB / 1.012 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.651e-05/2.461, allocations: 16 kB / 1.012 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001099/2.461, allocations: 16.97 kB / 1.012 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04976/2.511, allocations: 23.75 MB / 1.036 GB, free: 36.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.093e-05/2.511, allocations: 6.25 kB / 1.036 GB, free: 36.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004379/2.515, allocations: 0.7011 MB / 1.036 GB, free: 35.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01292/2.528, allocations: 4.527 MB / 1.041 GB, free: 32.62 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001396/2.529, allocations: 67.52 kB / 1.041 GB, free: 32.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03071/2.56, allocations: 24.59 MB / 1.065 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/2.56, allocations: 0.7812 kB / 1.065 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4126/2.973, allocations: 20.05 MB / 1.084 GB, free: 93.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007309/2.98, allocations: 1.465 MB / 1.086 GB, free: 93.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003296/2.984, allocations: 68.5 kB / 1.086 GB, free: 93.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006986/2.991, allocations: 356.7 kB / 1.086 GB, free: 93.34 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002398/2.993, allocations: 250 kB / 1.086 GB, free: 93.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001186/2.994, allocations: 100.4 kB / 1.087 GB, free: 93.34 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009201/3.003, allocations: 3.492 MB / 1.09 GB, free: 93.13 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.222e-06/3.003, allocations: 1.375 kB / 1.09 GB, free: 93.13 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01473/3.018, allocations: 1.93 MB / 1.092 GB, free: 93.13 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 (315): * Single equations (assignments): 309 * 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,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04277/3.061, allocations: 20.91 MB / 1.112 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02911/3.09, allocations: 12.93 MB / 1.125 GB, free: 91.33 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/3.09, allocations: 1 kB / 1.125 GB, free: 91.33 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01446/3.105, allocations: 6.205 MB / 1.131 GB, free: 90.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006187/3.111, allocations: 0.7107 MB / 1.132 GB, free: 90.01 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04868/3.16, allocations: 17.56 MB / 1.149 GB, free: 83.86 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01133/3.171, allocations: 5.112 MB / 1.154 GB, free: 82.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01008/3.181, allocations: 2.974 MB / 1.157 GB, free: 82.14 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007417/3.189, allocations: 3.199 MB / 1.16 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of SimCode: time 1.823e-06/3.189, allocations: 0 / 1.16 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6155/3.804, allocations: 151.3 MB / 1.307 GB, free: 83.03 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/3.804, allocations: 179.9 kB / 1.308 GB, free: 82.81 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.995/10.8, allocations: 3.938 kB / 1.308 GB, free: 82.8 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