Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002372/0.002378, allocations: 183.4 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.076/2.076, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001268/0.001268, allocations: 101.2 kB / 270.9 MB, free: 8.359 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.5126/0.5126, allocations: 43.55 MB / 362.7 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005636/0.0005638, allocations: 20 kB / 431.5 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1312, allocations: 58.85 MB / 490.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3): time 0.4139/0.5452, allocations: 74.79 MB / 0.5519 GB, free: 13.23 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.05282/0.5981, allocations: 17.21 MB / 0.5687 GB, free: 1.461 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01838/0.6165, allocations: 383.9 kB / 0.569 GB, free: 1.398 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01418/0.6307, allocations: 3.748 MB / 0.5727 GB, free: 168 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04903/0.6798, allocations: 10.65 MB / 0.5831 GB, free: 10.79 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007692/0.6876, allocations: 1.051 MB / 0.5841 GB, free: 10.1 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1076/0.7952, allocations: 39.65 MB / 0.6228 GB, free: 2.488 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01852/0.8138, allocations: 7.94 MB / 0.6306 GB, free: 10.52 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005282/0.8191, allocations: 1.783 MB / 0.6323 GB, free: 8.73 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006097/0.8253, allocations: 2.36 MB / 0.6346 GB, free: 6.363 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001815/0.8272, allocations: 252 kB / 0.6349 GB, free: 6.117 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004422/0.8316, allocations: 0.995 MB / 0.6359 GB, free: 5.121 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005215/0.8369, allocations: 2.642 MB / 0.6384 GB, free: 2.473 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003202/0.8402, allocations: 1.357 MB / 0.6398 GB, free: 1.105 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01636/0.8566, allocations: 9.523 MB / 0.6491 GB, free: 7.559 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.8566, allocations: 0 / 0.6491 GB, free: 7.559 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.8566, allocations: 0 / 0.6491 GB, free: 7.559 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004208/0.8571, allocations: 4 kB / 0.6491 GB, free: 7.555 MB / 474.7 MB 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.03345/0.8905, allocations: 7.435 MB / 0.6563 GB, free: 32 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.8906, allocations: 16.02 kB / 0.6563 GB, free: 16 kB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004125/0.8947, allocations: 1.062 MB / 0.6574 GB, free: 14.94 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.827/1.722, allocations: 21.05 MB / 0.6779 GB, free: 138.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02127/1.743, allocations: 6.107 MB / 0.6839 GB, free: 137.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004178/1.744, allocations: 387 kB / 0.6843 GB, free: 137.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002565/1.746, allocations: 0.5302 MB / 0.6848 GB, free: 137.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04355/1.79, allocations: 16.08 MB / 0.7005 GB, free: 130.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003393/1.79, allocations: 71.02 kB / 0.7006 GB, free: 130.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00157/1.792, allocations: 238.3 kB / 0.7008 GB, free: 130.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009328/1.801, allocations: 2.905 MB / 0.7036 GB, free: 129.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0482/1.849, allocations: 14.56 MB / 0.7178 GB, free: 125.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1199/1.969, allocations: 63.08 MB / 0.7794 GB, free: 64.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03163/2.001, allocations: 7.613 MB / 0.7869 GB, free: 56.79 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04499/2.046, allocations: 18.46 MB / 0.8049 GB, free: 38.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.11e-05/2.046, allocations: 68.58 kB / 0.805 GB, free: 38.17 MB / 490.7 MB Notification: Performance of pre-optimization done (n=310): time 7.635e-06/2.046, allocations: 0 / 0.805 GB, free: 38.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=394): time 0.6409/2.687, allocations: 62.5 MB / 0.866 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/2.687, allocations: 327.8 kB / 0.8663 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01442/2.702, allocations: 6.338 MB / 0.8725 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001487/2.703, allocations: 87.12 kB / 0.8726 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003707/2.707, allocations: 4.213 MB / 0.8767 GB, free: 135 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00277/2.71, allocations: 1.426 MB / 0.8781 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001529/2.711, allocations: 170.7 kB / 0.8783 GB, free: 133.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005857/2.712, allocations: 0.6685 MB / 0.8789 GB, free: 133.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01274/2.725, allocations: 5.014 MB / 0.8838 GB, free: 131.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01568/2.74, allocations: 9.394 MB / 0.893 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01623/2.757, allocations: 6.745 MB / 0.8996 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001798/2.757, allocations: 43.59 kB / 0.8996 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1094) (initialization): time 0.08878/2.846, allocations: 18.95 MB / 0.9181 GB, free: 115 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000155/2.846, allocations: 69.06 kB / 0.9182 GB, free: 115 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002912/2.846, allocations: 151.9 kB / 0.9183 GB, free: 115 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02993/2.876, allocations: 5.565 MB / 0.9238 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01361/2.89, allocations: 2.004 MB / 0.9257 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06446/2.954, allocations: 28.26 MB / 0.9533 GB, free: 89.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01267/2.967, allocations: 0.637 MB / 0.9539 GB, free: 88.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002502/2.97, allocations: 493.3 kB / 0.9544 GB, free: 88.17 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 690 * 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 (991): * Single equations (assignments): 985 * 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.009212/2.979, allocations: 3.158 MB / 0.9575 GB, free: 85 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002294/2.981, allocations: 0.5536 MB / 0.958 GB, free: 84.44 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04989/3.031, allocations: 14.01 MB / 0.9717 GB, free: 70.37 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.557e-05/3.031, allocations: 40.78 kB / 0.9718 GB, free: 70.33 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.529e-05/3.031, allocations: 16 kB / 0.9718 GB, free: 70.31 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/3.032, allocations: 19.92 kB / 0.9718 GB, free: 70.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09905/3.131, allocations: 24.53 MB / 0.9957 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.881e-05/3.131, allocations: 4.531 kB / 0.9957 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007475/3.138, allocations: 0.6865 MB / 0.9964 GB, free: 45.05 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02764/3.166, allocations: 5.327 MB / 1.002 GB, free: 39.71 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001453/3.167, allocations: 69.08 kB / 1.002 GB, free: 39.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09561/3.263, allocations: 27.64 MB / 1.029 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/3.263, allocations: 2.438 kB / 1.029 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4566/3.72, allocations: 20.8 MB / 1.049 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006607/3.726, allocations: 1.513 MB / 1.05 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003038/3.729, allocations: 64.28 kB / 1.051 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009252/3.739, allocations: 384.7 kB / 1.051 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002459/3.741, allocations: 252.1 kB / 1.051 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001327/3.743, allocations: 96.52 kB / 1.051 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01063/3.753, allocations: 4.137 MB / 1.055 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.61e-07/3.753, allocations: 0 / 1.055 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01295/3.766, allocations: 1.987 MB / 1.057 GB, free: 139.9 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (305): * Single equations (assignments): 299 * 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.06563/3.832, allocations: 21.66 MB / 1.078 GB, free: 132.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03877/3.871, allocations: 13.1 MB / 1.091 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/3.871, allocations: 5.344 kB / 1.091 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02206/3.893, allocations: 6.446 MB / 1.097 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007415/3.9, allocations: 0.6972 MB / 1.098 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.683/4.584, allocations: 179.4 MB / 1.273 GB, free: 156.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01134/4.595, allocations: 5.093 MB / 1.278 GB, free: 154.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009767/4.605, allocations: 3.245 MB / 1.282 GB, free: 152.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.573e-06/4.605, allocations: 0 / 1.282 GB, free: 152.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.124/10.73, allocations: 226.1 MB / 1.502 GB, free: 133.8 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat