Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.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.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_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.001187/0.001187, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000873/0.0008731, allocations: 91.88 kB / 261.7 MB, free: 1.68 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.2071/0.2071, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.828e-05/1.829e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1196, allocations: 58.86 MB / 477.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4441/0.5637, allocations: 109.7 MB / 0.5731 GB, free: 1.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.564, allocations: 79.09 kB / 0.5732 GB, free: 1.945 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6828/1.247, allocations: 160.7 MB / 0.7301 GB, free: 94.55 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.462e-06/1.247, allocations: 3.562 kB / 0.7301 GB, free: 94.55 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003468/1.247, allocations: 159.3 kB / 0.7303 GB, free: 94.54 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: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.02281/1.27, allocations: 7.507 MB / 0.7376 GB, free: 91.46 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/1.27, allocations: 10.88 kB / 0.7376 GB, free: 91.46 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03849/1.309, allocations: 10.05 MB / 0.7474 GB, free: 90.89 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02026/1.329, allocations: 8.422 MB / 0.7556 GB, free: 89.93 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003458/1.329, allocations: 273.2 kB / 0.7559 GB, free: 89.93 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003671/1.333, allocations: 494.8 kB / 0.7564 GB, free: 89.93 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02144/1.354, allocations: 13.11 MB / 0.7692 GB, free: 89.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0349/1.389, allocations: 18.8 MB / 0.7875 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002773/1.39, allocations: 91.91 kB / 0.7876 GB, free: 85.44 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001181/1.391, allocations: 50.67 kB / 0.7877 GB, free: 85.44 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002232/1.393, allocations: 2.108 MB / 0.7897 GB, free: 85.09 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08367/1.477, allocations: 81.12 MB / 0.8689 GB, free: 17.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00889/1.486, allocations: 8.065 MB / 0.8768 GB, free: 9.426 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005857/1.492, allocations: 4.996 MB / 0.8817 GB, free: 4.816 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003294/1.492, allocations: 65.48 kB / 0.8818 GB, free: 4.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.859e-05/1.492, allocations: 77.14 kB / 0.8818 GB, free: 4.684 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=452): time 8.295e-06/1.492, allocations: 0 / 0.8818 GB, free: 4.684 MB / 0.4948 GB Notification: Performance of matching and sorting (n=499): time 0.3813/1.873, allocations: 36.89 MB / 0.9179 GB, free: 98.26 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/1.874, allocations: 227 kB / 0.9181 GB, free: 98.04 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01219/1.886, allocations: 5.169 MB / 0.9231 GB, free: 97.53 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001327/1.887, allocations: 25.7 kB / 0.9232 GB, free: 97.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005403/1.893, allocations: 5.845 MB / 0.9289 GB, free: 94.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00253/1.895, allocations: 1.763 MB / 0.9306 GB, free: 93.41 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009785/1.896, allocations: 0 / 0.9306 GB, free: 93.41 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006152/1.897, allocations: 0.8189 MB / 0.9314 GB, free: 93.07 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006/1.903, allocations: 4.65 MB / 0.9359 GB, free: 93.05 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01051/1.913, allocations: 11.16 MB / 0.9468 GB, free: 84.67 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01363/1.927, allocations: 7.227 MB / 0.9539 GB, free: 84.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004766/1.928, allocations: 67.25 kB / 0.9539 GB, free: 84.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1560) (initialization): time 0.054/1.982, allocations: 15.83 MB / 0.9694 GB, free: 83.51 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004259/1.982, allocations: 104.8 kB / 0.9695 GB, free: 83.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005206/1.983, allocations: 231.8 kB / 0.9697 GB, free: 83.51 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005638/1.988, allocations: 1.712 MB / 0.9714 GB, free: 83.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01065/1.999, allocations: 2.73 MB / 0.9741 GB, free: 83.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01369/2.013, allocations: 13.17 MB / 0.9869 GB, free: 75.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0102/2.023, allocations: 467.2 kB / 0.9874 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003024/2.026, allocations: 0.6697 MB / 0.988 GB, free: 74.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1051 * Number of states: 0 () * Number of discrete variables: 51 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1436): * Single equations (assignments): 1423 * 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.003537/2.03, allocations: 0.6864 MB / 0.9887 GB, free: 74.34 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01374/2.043, allocations: 8.675 MB / 0.9972 GB, free: 71.35 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002259/2.046, allocations: 0.5918 MB / 0.9977 GB, free: 71.02 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01861/2.064, allocations: 9.14 MB / 1.007 GB, free: 67.76 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001261/2.064, allocations: 90.55 kB / 1.007 GB, free: 67.75 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.456e-05/2.064, allocations: 7.781 kB / 1.007 GB, free: 67.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.849e-05/2.065, allocations: 24.88 kB / 1.007 GB, free: 67.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04526/2.11, allocations: 19.69 MB / 1.026 GB, free: 57.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.871e-05/2.11, allocations: 11.66 kB / 1.026 GB, free: 57.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003742/2.114, allocations: 0.7919 MB / 1.027 GB, free: 57.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003378/2.117, allocations: 1.347 MB / 1.028 GB, free: 56.27 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006417/2.118, allocations: 27.38 kB / 1.028 GB, free: 56.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/2.129, allocations: 12.12 MB / 1.04 GB, free: 44.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-05/2.129, allocations: 15.94 kB / 1.04 GB, free: 44.86 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02008/2.149, allocations: 16.58 MB / 1.056 GB, free: 29.36 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003706/2.153, allocations: 1.327 MB / 1.057 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001089/2.154, allocations: 23 kB / 1.058 GB, free: 28.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002919/2.157, allocations: 238.4 kB / 1.058 GB, free: 27.97 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006489/2.157, allocations: 307.7 kB / 1.058 GB, free: 27.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002968/2.158, allocations: 127.7 kB / 1.058 GB, free: 27.64 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005271/2.163, allocations: 3.426 MB / 1.061 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.11e-07/2.163, allocations: 0 / 1.061 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01275/2.176, allocations: 1.751 MB / 1.063 GB, free: 22.94 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (383): * Single equations (assignments): 370 * 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.01968/2.196, allocations: 19.41 MB / 1.082 GB, free: 4.855 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01831/2.214, allocations: 11.47 MB / 1.093 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.579e-05/2.214, allocations: 0 / 1.093 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.3172/2.531, allocations: 5.244 MB / 1.098 GB, free: 109 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006113/2.537, allocations: 0.5357 MB / 1.099 GB, free: 109 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05711/2.594, allocations: 19.66 MB / 1.118 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01111/2.606, allocations: 6.265 MB / 1.124 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01215/2.618, allocations: 4.283 MB / 1.129 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007698/2.626, allocations: 4.086 MB / 1.133 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.152e-06/2.626, allocations: 0 / 1.133 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2018/2.827, allocations: 140.8 MB / 1.27 GB, free: 16.25 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/2.828, allocations: 138.9 kB / 1.27 GB, free: 16.05 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.263/9.09, allocations: 7.938 kB / 1.27 GB, free: 16.04 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat