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.00142/0.00142, allocations: 183.8 kB / 15.76 MB, free: 6.367 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.715/1.715, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009595/0.0009598, allocations: 86.89 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2196/0.2196, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003482, allocations: 11.98 kB / 431.5 MB, free: 19.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1144, allocations: 58.86 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.412/0.5265, allocations: 107.9 MB / 0.5842 GB, free: 8.184 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.5268, allocations: 85.27 kB / 0.5843 GB, free: 8.137 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6277/1.155, allocations: 132 MB / 0.7131 GB, free: 96.24 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.517e-06/1.155, allocations: 0 / 0.7131 GB, free: 96.24 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0008953/1.156, allocations: 143.1 kB / 0.7133 GB, free: 96.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: 2235 * Number of variables: 2235 Notification: Performance of Generate backend data structure: time 0.0316/1.187, allocations: 7.512 MB / 0.7206 GB, free: 93.97 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/1.187, allocations: 8.875 kB / 0.7206 GB, free: 93.97 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006888/1.194, allocations: 1.12 MB / 0.7217 GB, free: 93.88 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03691/1.231, allocations: 9.407 MB / 0.7309 GB, free: 93.42 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02421/1.255, allocations: 9.044 MB / 0.7397 GB, free: 92.53 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006784/1.256, allocations: 482.6 kB / 0.7402 GB, free: 92.52 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003796/1.26, allocations: 0.6462 MB / 0.7408 GB, free: 92.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04167/1.302, allocations: 16.4 MB / 0.7569 GB, free: 89.16 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007758/1.302, allocations: 85.77 kB / 0.7569 GB, free: 89.16 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003839/1.306, allocations: 302.7 kB / 0.7572 GB, free: 89.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002538/1.309, allocations: 1.539 MB / 0.7587 GB, free: 89.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03035/1.339, allocations: 14.34 MB / 0.7727 GB, free: 89.09 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09099/1.43, allocations: 70.64 MB / 0.8417 GB, free: 38.42 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01781/1.448, allocations: 7.44 MB / 0.849 GB, free: 32.33 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03026/1.478, allocations: 17.93 MB / 0.8665 GB, free: 16.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/1.478, allocations: 68.52 kB / 0.8666 GB, free: 16.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=310): time 6.002e-06/1.478, allocations: 0 / 0.8666 GB, free: 16.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=404): time 0.4685/1.947, allocations: 60.13 MB / 0.9253 GB, free: 101 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001859/1.947, allocations: 332 kB / 0.9256 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01541/1.963, allocations: 4.974 MB / 0.9304 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002251/1.965, allocations: 92.27 kB / 0.9305 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005057/1.97, allocations: 4.418 MB / 0.9348 GB, free: 98.35 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003269/1.973, allocations: 1.461 MB / 0.9363 GB, free: 97.47 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002111/1.976, allocations: 170.5 kB / 0.9364 GB, free: 97.47 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001179/1.977, allocations: 0.6744 MB / 0.9371 GB, free: 97.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01016/1.987, allocations: 5.025 MB / 0.942 GB, free: 97.12 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01099/1.998, allocations: 9.442 MB / 0.9512 GB, free: 91.53 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/2.009, allocations: 6.782 MB / 0.9578 GB, free: 89.89 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002119/2.009, allocations: 41.62 kB / 0.9579 GB, free: 89.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.04194/2.051, allocations: 18.66 MB / 0.9761 GB, free: 84.15 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002347/2.051, allocations: 72.25 kB / 0.9762 GB, free: 84.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003116/2.052, allocations: 151 kB / 0.9763 GB, free: 84.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01592/2.068, allocations: 4.783 MB / 0.981 GB, free: 83.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008726/2.077, allocations: 2.026 MB / 0.983 GB, free: 83.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03787/2.114, allocations: 26.25 MB / 1.009 GB, free: 70.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01193/2.126, allocations: 0.6096 MB / 1.009 GB, free: 70.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004419/2.131, allocations: 498.4 kB / 1.01 GB, free: 69.98 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 () * Number of clocked 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.01196/2.143, allocations: 3.179 MB / 1.013 GB, free: 67.18 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002939/2.146, allocations: 0.5476 MB / 1.013 GB, free: 66.63 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03111/2.177, allocations: 13.5 MB / 1.026 GB, free: 56.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.627e-05/2.177, allocations: 40 kB / 1.027 GB, free: 56.08 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.566e-05/2.177, allocations: 16 kB / 1.027 GB, free: 56.07 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001074/2.177, allocations: 26.69 kB / 1.027 GB, free: 56.06 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05703/2.234, allocations: 23.91 MB / 1.05 GB, free: 37.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.129e-05/2.234, allocations: 0 / 1.05 GB, free: 37.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004096/2.239, allocations: 0.7072 MB / 1.051 GB, free: 36.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01322/2.252, allocations: 4.535 MB / 1.055 GB, free: 33.41 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001463/2.253, allocations: 67.98 kB / 1.055 GB, free: 33.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03169/2.285, allocations: 25.43 MB / 1.08 GB, free: 7.598 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/2.285, allocations: 4 kB / 1.08 GB, free: 7.594 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3577/2.643, allocations: 20.31 MB / 1.1 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006375/2.649, allocations: 1.461 MB / 1.101 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00245/2.652, allocations: 66.84 kB / 1.101 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00552/2.657, allocations: 356.5 kB / 1.102 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001821/2.659, allocations: 261.9 kB / 1.102 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005189/2.66, allocations: 102.8 kB / 1.102 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009526/2.669, allocations: 3.544 MB / 1.105 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.303e-06/2.669, allocations: 0 / 1.105 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01425/2.683, allocations: 1.934 MB / 1.107 GB, free: 106.1 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 () * Number of clocked 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.03503/2.719, allocations: 21.16 MB / 1.128 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02486/2.743, allocations: 13.16 MB / 1.141 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/2.744, allocations: 0 / 1.141 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01265/2.756, allocations: 6.318 MB / 1.147 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006268/2.763, allocations: 0.7055 MB / 1.148 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4406/3.203, allocations: 176 MB / 1.32 GB, free: 158.2 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01174/3.215, allocations: 5.113 MB / 1.325 GB, free: 157.3 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01043/3.225, allocations: 2.969 MB / 1.327 GB, free: 157.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006886/3.232, allocations: 3.205 MB / 1.331 GB, free: 157.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.513e-06/3.232, allocations: 0 / 1.331 GB, free: 157.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2086/3.441, allocations: 151 MB / 1.478 GB, free: 68.67 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001391/3.441, allocations: 219.1 kB / 1.478 GB, free: 68.41 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.885/10.33, allocations: 0 / 1.478 GB, free: 68.41 MB / 0.573 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