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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001459/0.001459, allocations: 183 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.662/1.662, allocations: 205.2 MB / 218.9 MB, free: 9.141 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.0009351/0.0009351, allocations: 81.33 kB / 267 MB, free: 9.262 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.4014/0.4014, allocations: 43.47 MB / 358.6 MB, free: 51.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.924e-05/4.989e-05, allocations: 4 kB / 425.4 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1501, allocations: 58.85 MB / 484.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4863/0.6365, allocations: 108.7 MB / 0.5791 GB, free: 12.76 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.6368, allocations: 83.95 kB / 0.5792 GB, free: 12.72 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2792/0.916, allocations: 107.3 MB / 0.684 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.364e-06/0.9161, allocations: 0 / 0.684 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002348/0.9163, allocations: 111.9 kB / 0.6841 GB, free: 10.24 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01782/0.9341, allocations: 5.267 MB / 0.6892 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.9342, allocations: 12.03 kB / 0.6892 GB, free: 4.891 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003828/0.9381, allocations: 0.9388 MB / 0.6901 GB, free: 3.938 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3879/1.326, allocations: 6.935 MB / 0.6969 GB, free: 85.93 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02049/1.347, allocations: 6.887 MB / 0.7036 GB, free: 85.55 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003491/1.347, allocations: 406.9 kB / 0.704 GB, free: 85.54 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002453/1.349, allocations: 0.5367 MB / 0.7046 GB, free: 85.53 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0271/1.377, allocations: 12.67 MB / 0.7169 GB, free: 82.44 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002542/1.377, allocations: 70.61 kB / 0.717 GB, free: 82.44 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007866/1.378, allocations: 263.8 kB / 0.7173 GB, free: 82.44 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001471/1.379, allocations: 1.134 MB / 0.7184 GB, free: 82.43 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02104/1.4, allocations: 10.29 MB / 0.7284 GB, free: 82.39 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08174/1.482, allocations: 57.21 MB / 0.7843 GB, free: 44.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01147/1.493, allocations: 4.368 MB / 0.7885 GB, free: 42.36 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00359/1.497, allocations: 2.384 MB / 0.7909 GB, free: 41.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01901/1.516, allocations: 9.96 MB / 0.8006 GB, free: 36.39 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.519e-05/1.516, allocations: 54.97 kB / 0.8007 GB, free: 36.34 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=192): time 4.568e-06/1.516, allocations: 2.5 kB / 0.8007 GB, free: 36.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=218): time 0.05015/1.566, allocations: 16.2 MB / 0.8165 GB, free: 29.99 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.189e-05/1.567, allocations: 205.9 kB / 0.8167 GB, free: 29.77 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007073/1.574, allocations: 4.204 MB / 0.8208 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005471/1.574, allocations: 57.05 kB / 0.8208 GB, free: 28.17 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002495/1.577, allocations: 3.779 MB / 0.8245 GB, free: 25.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001161/1.578, allocations: 0.8342 MB / 0.8253 GB, free: 24.66 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002837/1.578, allocations: 131.2 kB / 0.8255 GB, free: 24.56 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003106/1.578, allocations: 0.5849 MB / 0.826 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003142/1.582, allocations: 2.19 MB / 0.8282 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004966/1.587, allocations: 6.145 MB / 0.8342 GB, free: 17.25 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00444/1.591, allocations: 3.655 MB / 0.8377 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.733e-05/1.591, allocations: 41.69 kB / 0.8378 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=860) (initialization): time 0.01793/1.609, allocations: 8.832 MB / 0.8464 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/1.609, allocations: 68 kB / 0.8465 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000176/1.609, allocations: 136 kB / 0.8466 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/1.612, allocations: 0.9416 MB / 0.8475 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005195/1.617, allocations: 1.511 MB / 0.849 GB, free: 9.953 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008619/1.626, allocations: 7.423 MB / 0.8562 GB, free: 19.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006546/1.632, allocations: 356.5 kB / 0.8566 GB, free: 18.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001683/1.634, allocations: 398.2 kB / 0.857 GB, free: 18.34 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 638 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (798): * Single equations (assignments): 793 * 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.002443/1.636, allocations: 0.6217 MB / 0.8576 GB, free: 17.72 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001761/1.638, allocations: 430.4 kB / 0.858 GB, free: 17.29 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008727/1.647, allocations: 3.536 MB / 0.8614 GB, free: 14.37 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-05/1.647, allocations: 28 kB / 0.8615 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.721e-05/1.647, allocations: 8 kB / 0.8615 GB, free: 14.33 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.091e-05/1.647, allocations: 10.45 kB / 0.8615 GB, free: 14.33 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02622/1.673, allocations: 9.237 MB / 0.8705 GB, free: 6.785 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/1.673, allocations: 3.234 kB / 0.8705 GB, free: 6.785 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/1.675, allocations: 347 kB / 0.8708 GB, free: 6.508 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002229/1.677, allocations: 0.6861 MB / 0.8715 GB, free: 6.012 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002536/1.678, allocations: 39.38 kB / 0.8715 GB, free: 5.977 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009061/1.687, allocations: 6.598 MB / 0.878 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.898e-06/1.687, allocations: 2.203 kB / 0.878 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/1.698, allocations: 6.266 MB / 0.8841 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002917/1.7, allocations: 0.7381 MB / 0.8848 GB, free: 9.707 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001442/1.702, allocations: 36.69 kB / 0.8849 GB, free: 9.676 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002672/1.705, allocations: 117 kB / 0.885 GB, free: 9.594 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004821/1.705, allocations: 134.6 kB / 0.8851 GB, free: 9.512 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001951/1.705, allocations: 55.61 kB / 0.8852 GB, free: 9.461 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008042/1.713, allocations: 2.969 MB / 0.8881 GB, free: 6.84 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.51e-07/1.713, allocations: 0 / 0.8881 GB, free: 6.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008496/1.722, allocations: 1.195 MB / 0.8892 GB, free: 5.656 MB / 0.5261 GB 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 () * 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.4197/2.142, allocations: 7.358 MB / 0.8964 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01392/2.156, allocations: 5.653 MB / 0.9019 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/2.156, allocations: 0 / 0.9019 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003491/2.159, allocations: 1.951 MB / 0.9038 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003468/2.163, allocations: 0.5196 MB / 0.9043 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03507/2.198, allocations: 11.04 MB / 0.9151 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008611/2.206, allocations: 4.117 MB / 0.9191 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006413/2.213, allocations: 2.102 MB / 0.9212 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004887/2.218, allocations: 2.469 MB / 0.9236 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.553e-06/2.218, allocations: 0 / 0.9236 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1702/2.388, allocations: 92.66 MB / 1.014 GB, free: 77.75 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/2.388, allocations: 176.4 kB / 1.014 GB, free: 77.53 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.756/8.144, allocations: 7.938 kB / 1.014 GB, free: 77.52 MB / 0.5261 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) 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