Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001628/0.001628, allocations: 183.9 kB / 16.4 MB, free: 5.75 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.028/2.028, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001124/0.001123, allocations: 93.55 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.5197/0.5197, allocations: 43.55 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004888/0.0004886, allocations: 12 kB / 431.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1422, allocations: 58.85 MB / 490.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.4183/0.5606, allocations: 70.43 MB / 0.5476 GB, free: 240 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04743/0.608, allocations: 15.96 MB / 0.5632 GB, free: 5.355 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01706/0.6252, allocations: 349.8 kB / 0.5635 GB, free: 5.305 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01327/0.6385, allocations: 3.595 MB / 0.567 GB, free: 4.145 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04311/0.6816, allocations: 10.14 MB / 0.5769 GB, free: 15.33 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006083/0.6878, allocations: 0.7945 MB / 0.5777 GB, free: 15 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07617/0.764, allocations: 28.05 MB / 0.6051 GB, free: 4.668 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01768/0.7818, allocations: 7.81 MB / 0.6127 GB, free: 12.82 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005316/0.7871, allocations: 1.989 MB / 0.6147 GB, free: 10.83 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006306/0.7935, allocations: 2.652 MB / 0.6173 GB, free: 8.168 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001974/0.7955, allocations: 292 kB / 0.6175 GB, free: 7.883 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004332/0.7999, allocations: 0.9987 MB / 0.6185 GB, free: 6.883 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005885/0.8058, allocations: 3.086 MB / 0.6215 GB, free: 3.789 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003512/0.8094, allocations: 1.645 MB / 0.6231 GB, free: 2.133 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01843/0.8279, allocations: 10.97 MB / 0.6338 GB, free: 7.141 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.8279, allocations: 4 kB / 0.6339 GB, free: 7.137 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.8279, allocations: 0 / 0.6339 GB, free: 7.137 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004838/0.8284, allocations: 0 / 0.6339 GB, free: 7.137 MB / 458.7 MB 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.02615/0.8546, allocations: 7.733 MB / 0.6414 GB, free: 15.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.8547, allocations: 8.031 kB / 0.6414 GB, free: 15.31 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004824/0.8595, allocations: 1.443 MB / 0.6428 GB, free: 13.86 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1093/0.9688, allocations: 11.53 MB / 0.6541 GB, free: 2.301 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01796/0.9868, allocations: 5.374 MB / 0.6593 GB, free: 12.84 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006534/0.9875, allocations: 451.5 kB / 0.6598 GB, free: 12.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00364/0.9912, allocations: 0.5855 MB / 0.6603 GB, free: 11.81 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6952/1.686, allocations: 20.54 MB / 0.6804 GB, free: 127.1 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005086/1.687, allocations: 74.05 kB / 0.6805 GB, free: 127.1 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003166/1.69, allocations: 282.7 kB / 0.6807 GB, free: 127.1 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01203/1.702, allocations: 4.345 MB / 0.685 GB, free: 126.5 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05333/1.756, allocations: 18.13 MB / 0.7027 GB, free: 120.9 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1466/1.902, allocations: 75.23 MB / 0.7761 GB, free: 64.05 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02689/1.929, allocations: 8.142 MB / 0.7841 GB, free: 55.67 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005606/1.93, allocations: 69.27 kB / 0.7841 GB, free: 55.62 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.7e-05/1.93, allocations: 77.19 kB / 0.7842 GB, free: 55.54 MB / 490.8 MB Notification: Performance of pre-optimization done (n=450): time 1.134e-05/1.93, allocations: 0 / 0.7842 GB, free: 55.54 MB / 490.8 MB Notification: Performance of matching and sorting (n=497): time 0.1788/2.109, allocations: 42.73 MB / 0.8259 GB, free: 12.55 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/2.109, allocations: 226.9 kB / 0.8262 GB, free: 12.29 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01369/2.123, allocations: 6.744 MB / 0.8328 GB, free: 5.547 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0012/2.124, allocations: 92.91 kB / 0.8328 GB, free: 5.453 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004403/2.128, allocations: 5.526 MB / 0.8382 GB, free: 15.93 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003426/2.132, allocations: 1.803 MB / 0.84 GB, free: 14.14 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001611/2.133, allocations: 226.8 kB / 0.8402 GB, free: 13.92 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001198/2.135, allocations: 0.7942 MB / 0.841 GB, free: 13.11 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01439/2.149, allocations: 4.941 MB / 0.8458 GB, free: 8.168 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0211/2.17, allocations: 11.07 MB / 0.8566 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01946/2.19, allocations: 7.36 MB / 0.8638 GB, free: 2.742 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002418/2.19, allocations: 67 kB / 0.8639 GB, free: 2.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.3957/2.586, allocations: 17.06 MB / 0.8805 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001666/2.586, allocations: 96.94 kB / 0.8806 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003946/2.586, allocations: 214.7 kB / 0.8808 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008569/2.595, allocations: 1.861 MB / 0.8827 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01636/2.611, allocations: 2.587 MB / 0.8852 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02685/2.638, allocations: 15.04 MB / 0.8999 GB, free: 130.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01187/2.65, allocations: 0.6639 MB / 0.9005 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002518/2.653, allocations: 0.6316 MB / 0.9011 GB, free: 130.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1360): * Single equations (assignments): 1347 * 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.01202/2.665, allocations: 4.186 MB / 0.9052 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002264/2.667, allocations: 0.6176 MB / 0.9058 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03409/2.701, allocations: 9.835 MB / 0.9154 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003293/2.702, allocations: 92.66 kB / 0.9155 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001018/2.702, allocations: 13.11 kB / 0.9155 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001513/2.702, allocations: 21.5 kB / 0.9155 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06645/2.768, allocations: 21.93 MB / 0.937 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.132e-05/2.769, allocations: 10.25 kB / 0.937 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007543/2.776, allocations: 0.7968 MB / 0.9378 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007536/2.784, allocations: 1.508 MB / 0.9392 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001172/2.785, allocations: 91.12 kB / 0.9393 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02399/2.809, allocations: 14.05 MB / 0.953 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.335e-05/2.809, allocations: 15.94 kB / 0.953 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0377/2.847, allocations: 17.52 MB / 0.9702 GB, free: 85.15 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00515/2.852, allocations: 1.41 MB / 0.9715 GB, free: 83.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002253/2.854, allocations: 85.08 kB / 0.9716 GB, free: 83.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006565/2.861, allocations: 318.5 kB / 0.9719 GB, free: 83.32 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001918/2.863, allocations: 300.2 kB / 0.9722 GB, free: 83.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009225/2.864, allocations: 125.5 kB / 0.9723 GB, free: 82.91 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01015/2.874, allocations: 4.233 MB / 0.9765 GB, free: 78.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.62e-07/2.874, allocations: 2.844 kB / 0.9765 GB, free: 78.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01299/2.887, allocations: 2.066 MB / 0.9785 GB, free: 76.62 MB / 0.5105 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 (381): * Single equations (assignments): 368 * 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.03894/2.926, allocations: 20.28 MB / 0.9983 GB, free: 55.94 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0268/2.953, allocations: 12.2 MB / 1.01 GB, free: 43.73 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/2.953, allocations: 4 kB / 1.01 GB, free: 43.73 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01179/2.965, allocations: 4.97 MB / 1.015 GB, free: 38.71 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00617/2.971, allocations: 0.7371 MB / 1.016 GB, free: 38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5701/3.541, allocations: 224.6 MB / 1.235 GB, free: 20 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01563/3.557, allocations: 6.277 MB / 1.241 GB, free: 18.01 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01096/3.568, allocations: 4.112 MB / 1.245 GB, free: 14.68 MB / 0.5418 GB Notification: Performance of SimCode: time 2.024e-06/3.568, allocations: 0 / 1.245 GB, free: 14.68 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.74/10.31, allocations: 309.2 MB / 1.547 GB, free: 133.7 MB / 0.5418 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat