Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001393/0.001393, allocations: 97.14 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001786/0.001786, allocations: 201.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2216/0.2216, allocations: 45.92 MB / 344 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000478/0.0004781, allocations: 8 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1753, allocations: 63.47 MB / 481.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.4031/0.5785, allocations: 69.91 MB / 0.5385 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04235/0.6208, allocations: 15.88 MB / 0.554 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02548/0.6464, allocations: 349.4 kB / 0.5543 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01567/0.6621, allocations: 3.586 MB / 0.5578 GB, free: 7.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03776/0.6999, allocations: 10.08 MB / 0.5677 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006011/0.7059, allocations: 0.788 MB / 0.5685 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.07435/0.7803, allocations: 49.43 MB / 0.6167 GB, free: 12.81 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01249/0.7928, allocations: 7.732 MB / 0.6243 GB, free: 5.012 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004694/0.7976, allocations: 1.939 MB / 0.6262 GB, free: 3.066 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00522/0.8028, allocations: 2.57 MB / 0.6287 GB, free: 500 kB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001985/0.8049, allocations: 280 kB / 0.629 GB, free: 220 kB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003366/0.8082, allocations: 0.9755 MB / 0.6299 GB, free: 15.24 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004194/0.8125, allocations: 3.004 MB / 0.6328 GB, free: 12.23 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002925/0.8154, allocations: 1.598 MB / 0.6344 GB, free: 10.62 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01439/0.8298, allocations: 10.65 MB / 0.6448 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.8299, allocations: 0 / 0.6448 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.556e-06/0.8299, allocations: 0 / 0.6448 GB, free: 15.93 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0005352/0.8304, allocations: 4 kB / 0.6448 GB, free: 15.93 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02214/0.8526, allocations: 7.574 MB / 0.6522 GB, free: 8.273 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.8526, allocations: 8.031 kB / 0.6522 GB, free: 8.266 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004957/0.8576, allocations: 1.406 MB / 0.6536 GB, free: 6.848 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05489/0.9125, allocations: 11.53 MB / 0.6648 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01456/0.9272, allocations: 4.982 MB / 0.6697 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004414/0.9276, allocations: 443.2 kB / 0.6701 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003053/0.9307, allocations: 0.5738 MB / 0.6707 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04029/0.971, allocations: 20.03 MB / 0.6903 GB, free: 156 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002816/0.9713, allocations: 71.39 kB / 0.6903 GB, free: 84 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002062/0.9734, allocations: 275.7 kB / 0.6906 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007188/0.9806, allocations: 4.231 MB / 0.6947 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5458/1.526, allocations: 17.68 MB / 0.712 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1036/1.63, allocations: 73.6 MB / 0.7839 GB, free: 118 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01519/1.645, allocations: 7.902 MB / 0.7916 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004127/1.646, allocations: 62.45 kB / 0.7916 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.119e-05/1.646, allocations: 69.09 kB / 0.7917 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 8.466e-06/1.646, allocations: 3.938 kB / 0.7917 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.1041/1.75, allocations: 41.63 MB / 0.8324 GB, free: 67.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/1.75, allocations: 230.8 kB / 0.8326 GB, free: 67.53 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/1.761, allocations: 6.617 MB / 0.839 GB, free: 60.91 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001476/1.763, allocations: 91.03 kB / 0.8391 GB, free: 60.82 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004481/1.767, allocations: 5.57 MB / 0.8446 GB, free: 55.25 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002561/1.77, allocations: 1.734 MB / 0.8463 GB, free: 53.53 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007479/1.77, allocations: 213.5 kB / 0.8465 GB, free: 53.32 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005027/1.771, allocations: 0.7888 MB / 0.8472 GB, free: 52.53 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006102/1.777, allocations: 4.773 MB / 0.8519 GB, free: 47.75 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009345/1.786, allocations: 10.79 MB / 0.8624 GB, free: 34.02 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/1.796, allocations: 7.154 MB / 0.8694 GB, free: 26.86 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001884/1.797, allocations: 60 kB / 0.8695 GB, free: 26.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1446) (initialization): time 0.03436/1.831, allocations: 16.79 MB / 0.8859 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003084/1.831, allocations: 98.5 kB / 0.886 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003991/1.832, allocations: 212 kB / 0.8862 GB, free: 9.668 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004877/1.837, allocations: 1.847 MB / 0.888 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009337/1.846, allocations: 2.515 MB / 0.8904 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01768/1.864, allocations: 15.13 MB / 0.9052 GB, free: 5.637 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008965/1.873, allocations: 0.6495 MB / 0.9058 GB, free: 4.988 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002475/1.875, allocations: 0.6143 MB / 0.9064 GB, free: 4.375 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1322): * Single equations (assignments): 1309 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01083/1.886, allocations: 4.098 MB / 0.9104 GB, free: 268 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.292/2.178, allocations: 0.596 MB / 0.911 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02073/2.199, allocations: 9.451 MB / 0.9203 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001947/2.199, allocations: 90.8 kB / 0.9203 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.035e-05/2.199, allocations: 10.52 kB / 0.9204 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001088/2.199, allocations: 20.11 kB / 0.9204 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04365/2.243, allocations: 21.22 MB / 0.9411 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.373e-05/2.243, allocations: 13.47 kB / 0.9411 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0034/2.247, allocations: 0.7442 MB / 0.9418 GB, free: 163.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003897/2.25, allocations: 1.502 MB / 0.9433 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000677/2.251, allocations: 83.02 kB / 0.9434 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01891/2.27, allocations: 14.07 MB / 0.9571 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.346e-05/2.27, allocations: 15.69 kB / 0.9571 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03635/2.306, allocations: 16.9 MB / 0.9736 GB, free: 139.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002856/2.309, allocations: 0.6461 MB / 0.9743 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002794/2.312, allocations: 81.59 kB / 0.9743 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006946/2.319, allocations: 298.5 kB / 0.9746 GB, free: 139.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001834/2.321, allocations: 288.5 kB / 0.9749 GB, free: 139.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001092/2.322, allocations: 121.2 kB / 0.975 GB, free: 139.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01206/2.334, allocations: 4.152 MB / 0.9791 GB, free: 135.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.673e-06/2.334, allocations: 4 kB / 0.9791 GB, free: 135.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01811/2.352, allocations: 2.001 MB / 0.981 GB, free: 133.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03994/2.392, allocations: 19.68 MB / 1 GB, free: 113.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.019/2.412, allocations: 11.8 MB / 1.012 GB, free: 101.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/2.412, allocations: 4 kB / 1.012 GB, free: 101.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006774/2.418, allocations: 4.788 MB / 1.016 GB, free: 96.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004366/2.423, allocations: 0.7254 MB / 1.017 GB, free: 95.91 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4187/2.842, allocations: 218.7 MB / 1.231 GB, free: 93.13 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008949/2.851, allocations: 6.119 MB / 1.237 GB, free: 91.2 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.009861/2.86, allocations: 4.01 MB / 1.241 GB, free: 90.57 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005978/2.866, allocations: 3.933 MB / 1.244 GB, free: 86.64 MB / 0.5607 GB Notification: Performance of SimCode: time 8.62e-07/2.866, allocations: 0 / 1.244 GB, free: 86.64 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4874/3.354, allocations: 146.3 MB / 1.387 GB, free: 161.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001384/3.354, allocations: 195.6 kB / 1.388 GB, free: 161.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.749/9.103, allocations: 3.938 kB / 1.388 GB, free: 161.6 MB / 0.5763 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat