Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001115, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008602/0.0008603, allocations: 96.75 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2246/0.2246, allocations: 45.13 MB / 383.7 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.533e-05/1.535e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1301, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3888/0.519, allocations: 109.1 MB / 0.611 GB, free: 9.719 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.5193, allocations: 83.44 kB / 0.6111 GB, free: 9.676 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3232/0.8425, allocations: 130.2 MB / 0.7382 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.244e-06/0.8425, allocations: 0 / 0.7382 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0005555/0.8431, allocations: 132 kB / 0.7383 GB, free: 15.31 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.02407/0.8672, allocations: 6.814 MB / 0.745 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.8672, allocations: 12.03 kB / 0.745 GB, free: 8.414 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3199/1.187, allocations: 9.433 MB / 0.7542 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02006/1.207, allocations: 7.674 MB / 0.7617 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003377/1.208, allocations: 199.5 kB / 0.7619 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002567/1.21, allocations: 379.2 kB / 0.7622 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01708/1.227, allocations: 9.691 MB / 0.7717 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02665/1.254, allocations: 13.82 MB / 0.7852 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000372/1.254, allocations: 80.95 kB / 0.7853 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002035/1.256, allocations: 36.16 kB / 0.7853 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002086/1.259, allocations: 1.469 MB / 0.7867 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06999/1.329, allocations: 66.79 MB / 0.852 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00627/1.335, allocations: 6.407 MB / 0.8582 GB, free: 63.26 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004463/1.339, allocations: 4.997 MB / 0.8631 GB, free: 61.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02154/1.361, allocations: 17.12 MB / 0.8798 GB, free: 53.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.009e-05/1.361, allocations: 69.38 kB / 0.8799 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=289): time 5.691e-06/1.361, allocations: 0 / 0.8799 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.08344/1.445, allocations: 41.6 MB / 0.9205 GB, free: 19.49 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.056e-05/1.445, allocations: 321.2 kB / 0.9208 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005542/1.45, allocations: 4.209 MB / 0.9249 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001053/1.451, allocations: 33.23 kB / 0.925 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002445/1.454, allocations: 4.349 MB / 0.9292 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001914/1.456, allocations: 1.283 MB / 0.9305 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005991/1.456, allocations: 0 / 0.9305 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003436/1.457, allocations: 0.6568 MB / 0.9311 GB, free: 9.723 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00516/1.462, allocations: 4.246 MB / 0.9352 GB, free: 5.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008675/1.47, allocations: 8.63 MB / 0.9437 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008912/1.479, allocations: 5.962 MB / 0.9495 GB, free: 6.613 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.773e-05/1.48, allocations: 44 kB / 0.9495 GB, free: 6.57 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.3187/1.798, allocations: 16.68 MB / 0.9658 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/1.798, allocations: 70.91 kB / 0.9659 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002288/1.799, allocations: 153.6 kB / 0.966 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01498/1.814, allocations: 4.729 MB / 0.9707 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007869/1.822, allocations: 1.95 MB / 0.9726 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03026/1.852, allocations: 23.59 MB / 0.9956 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008869/1.861, allocations: 448.1 kB / 0.996 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002351/1.863, allocations: 480.9 kB / 0.9965 GB, free: 106.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 700 * Number of states: 0 () * Number of discrete variables: 59 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (970): * Single equations (assignments): 964 * 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.002046/1.865, allocations: 0.5095 MB / 0.997 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02125/1.887, allocations: 11.5 MB / 1.008 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002045/1.889, allocations: 0.4973 MB / 1.009 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02325/1.912, allocations: 11.74 MB / 1.02 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.938e-05/1.912, allocations: 39.34 kB / 1.02 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-05/1.912, allocations: 17.66 kB / 1.02 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.667e-05/1.912, allocations: 18.75 kB / 1.02 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04216/1.954, allocations: 20.13 MB / 1.04 GB, free: 97.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.226e-05/1.954, allocations: 2.594 kB / 1.04 GB, free: 97.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003662/1.958, allocations: 0.6231 MB / 1.041 GB, free: 97.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01333/1.971, allocations: 4.5 MB / 1.045 GB, free: 96.66 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001177/1.973, allocations: 7.141 kB / 1.045 GB, free: 96.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0312/2.004, allocations: 23 MB / 1.067 GB, free: 85.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/2.004, allocations: 3.5 kB / 1.067 GB, free: 85.66 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02985/2.034, allocations: 17.63 MB / 1.085 GB, free: 71.78 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/2.035, allocations: 0.517 MB / 1.085 GB, free: 71.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001751/2.037, allocations: 4 kB / 1.085 GB, free: 71.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003776/2.041, allocations: 280.7 kB / 1.085 GB, free: 71.11 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001041/2.042, allocations: 237.3 kB / 1.086 GB, free: 70.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005223/2.042, allocations: 89.88 kB / 1.086 GB, free: 70.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004765/2.047, allocations: 2.883 MB / 1.089 GB, free: 68.39 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.3e-07/2.047, allocations: 0 / 1.089 GB, free: 68.39 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008153/2.055, allocations: 1.585 MB / 1.09 GB, free: 66.82 MB / 0.5417 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 (273): * Single equations (assignments): 267 * 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.02919/2.084, allocations: 18.44 MB / 1.108 GB, free: 49.28 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01932/2.104, allocations: 11.08 MB / 1.119 GB, free: 38.58 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/2.104, allocations: 4 kB / 1.119 GB, free: 38.57 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01146/2.115, allocations: 5.441 MB / 1.124 GB, free: 33.13 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005197/2.121, allocations: 0.5778 MB / 1.125 GB, free: 32.59 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03872/2.159, allocations: 15.89 MB / 1.14 GB, free: 16.88 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007123/2.166, allocations: 4.905 MB / 1.145 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00765/2.174, allocations: 2.76 MB / 1.148 GB, free: 9.219 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004214/2.178, allocations: 3.053 MB / 1.151 GB, free: 6.164 MB / 0.5417 GB Notification: Performance of SimCode: time 8.32e-07/2.178, allocations: 0 / 1.151 GB, free: 6.164 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4905/2.669, allocations: 134.7 MB / 1.282 GB, free: 75.73 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/2.669, allocations: 144.7 kB / 1.282 GB, free: 75.54 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.314/8.983, allocations: 0 / 1.282 GB, free: 75.54 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat