Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009872/0.0009872, allocations: 95.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 182.1 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.2 MB / 241.8 MB, free: 14.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2427/0.2427, allocations: 44.22 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000467/0.0004672, allocations: 12 kB / 409.6 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1482, allocations: 61.92 MB / 471.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3851/0.5333, allocations: 69.88 MB / 0.5287 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03971/0.5731, allocations: 15.87 MB / 0.5442 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02089/0.594, allocations: 348.9 kB / 0.5446 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01654/0.6106, allocations: 3.582 MB / 0.5481 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03824/0.6489, allocations: 10.09 MB / 0.5579 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006851/0.6558, allocations: 0.7984 MB / 0.5587 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.07285/0.7287, allocations: 49.73 MB / 0.6073 GB, free: 8.652 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01427/0.743, allocations: 7.743 MB / 0.6148 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004726/0.7477, allocations: 1.939 MB / 0.6167 GB, free: 14.9 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005842/0.7536, allocations: 2.562 MB / 0.6192 GB, free: 12.33 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00153/0.7552, allocations: 280 kB / 0.6195 GB, free: 12.06 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00305/0.7583, allocations: 0.9989 MB / 0.6205 GB, free: 11.06 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003603/0.7619, allocations: 3.008 MB / 0.6234 GB, free: 8.043 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002537/0.7644, allocations: 1.598 MB / 0.625 GB, free: 6.434 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01324/0.7777, allocations: 10.65 MB / 0.6354 GB, free: 11.76 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.7777, allocations: 4 kB / 0.6354 GB, free: 11.75 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.7777, allocations: 0 / 0.6354 GB, free: 11.75 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005229/0.7783, allocations: 0 / 0.6354 GB, free: 11.75 MB / 478.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.02032/0.7986, allocations: 7.547 MB / 0.6427 GB, free: 4.121 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.808e-05/0.7987, allocations: 12.03 kB / 0.6427 GB, free: 4.109 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006316/0.805, allocations: 1.41 MB / 0.6441 GB, free: 2.688 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05506/0.8601, allocations: 11.49 MB / 0.6553 GB, free: 7.172 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01454/0.8747, allocations: 4.978 MB / 0.6602 GB, free: 2.109 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005226/0.8753, allocations: 443.2 kB / 0.6606 GB, free: 1.676 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004473/0.8797, allocations: 0.5738 MB / 0.6612 GB, free: 1.102 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04733/0.9271, allocations: 20.03 MB / 0.6807 GB, free: 12.04 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003021/0.9275, allocations: 67.41 kB / 0.6808 GB, free: 11.97 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001792/0.9293, allocations: 275.7 kB / 0.6811 GB, free: 11.7 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007599/0.9369, allocations: 4.239 MB / 0.6852 GB, free: 7.457 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03669/0.9736, allocations: 17.69 MB / 0.7025 GB, free: 5.734 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5873/1.561, allocations: 73.6 MB / 0.7744 GB, free: 133.5 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01515/1.576, allocations: 7.889 MB / 0.7821 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003404/1.577, allocations: 65.22 kB / 0.7821 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/1.577, allocations: 73.09 kB / 0.7822 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 7.174e-06/1.577, allocations: 0 / 0.7822 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.09303/1.67, allocations: 41.63 MB / 0.8229 GB, free: 86.35 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/1.67, allocations: 218.8 kB / 0.8231 GB, free: 86.09 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00977/1.68, allocations: 6.621 MB / 0.8295 GB, free: 79.47 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001613/1.681, allocations: 94.88 kB / 0.8296 GB, free: 79.37 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004087/1.685, allocations: 5.566 MB / 0.8351 GB, free: 73.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002646/1.688, allocations: 1.733 MB / 0.8367 GB, free: 72.09 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000704/1.689, allocations: 213.9 kB / 0.837 GB, free: 71.88 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005233/1.689, allocations: 0.7887 MB / 0.8377 GB, free: 71.09 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006456/1.696, allocations: 4.773 MB / 0.8424 GB, free: 66.31 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01068/1.706, allocations: 10.78 MB / 0.8529 GB, free: 52.59 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/1.717, allocations: 7.148 MB / 0.8599 GB, free: 45.43 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001958/1.717, allocations: 60 kB / 0.86 GB, free: 45.37 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1446) (initialization): time 0.03912/1.756, allocations: 16.81 MB / 0.8764 GB, free: 28.53 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004359/1.757, allocations: 94.81 kB / 0.8765 GB, free: 28.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005774/1.757, allocations: 212 kB / 0.8767 GB, free: 28.23 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005202/1.763, allocations: 1.856 MB / 0.8785 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00944/1.772, allocations: 2.507 MB / 0.8809 GB, free: 23.85 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01663/1.789, allocations: 15.13 MB / 0.8957 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01018/1.799, allocations: 0.6553 MB / 0.8963 GB, free: 7.551 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002836/1.802, allocations: 0.6093 MB / 0.8969 GB, free: 6.941 MB / 0.5294 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.01101/1.813, allocations: 4.107 MB / 0.9009 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002407/1.815, allocations: 0.6055 MB / 0.9015 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02325/1.839, allocations: 9.444 MB / 0.9108 GB, free: 8.707 MB / 0.5451 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002014/1.839, allocations: 87.81 kB / 0.9108 GB, free: 8.625 MB / 0.5451 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.085e-05/1.839, allocations: 8 kB / 0.9108 GB, free: 8.617 MB / 0.5451 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001365/1.839, allocations: 19.92 kB / 0.9109 GB, free: 8.598 MB / 0.5451 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3562/2.195, allocations: 21.23 MB / 0.9316 GB, free: 177.9 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.851e-05/2.195, allocations: 11.06 kB / 0.9316 GB, free: 177.9 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003701/2.199, allocations: 0.7379 MB / 0.9323 GB, free: 177.8 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004126/2.203, allocations: 1.51 MB / 0.9338 GB, free: 177.5 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006909/2.204, allocations: 83.55 kB / 0.9339 GB, free: 177.4 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/2.217, allocations: 14.06 MB / 0.9476 GB, free: 168.7 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/2.217, allocations: 23.44 kB / 0.9476 GB, free: 168.6 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02071/2.238, allocations: 16.9 MB / 0.9641 GB, free: 160.6 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/2.24, allocations: 0.6406 MB / 0.9648 GB, free: 160.5 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0016/2.241, allocations: 86.09 kB / 0.9648 GB, free: 160.5 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00349/2.245, allocations: 299.1 kB / 0.9651 GB, free: 160.4 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009154/2.246, allocations: 288 kB / 0.9654 GB, free: 160.4 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003367/2.246, allocations: 121.5 kB / 0.9655 GB, free: 160.3 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.006244/2.253, allocations: 4.153 MB / 0.9696 GB, free: 157.7 MB / 0.5451 GB Notification: Performance of sort global known variables: time 2.21e-07/2.253, allocations: 0 / 0.9696 GB, free: 157.7 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.01168/2.264, allocations: 2.008 MB / 0.9715 GB, free: 155.7 MB / 0.5451 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.0209/2.285, allocations: 19.69 MB / 0.9908 GB, free: 137.4 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01478/2.3, allocations: 11.8 MB / 1.002 GB, free: 125.7 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/2.3, allocations: 4 kB / 1.002 GB, free: 125.7 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.005697/2.306, allocations: 4.788 MB / 1.007 GB, free: 120.9 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00408/2.31, allocations: 0.719 MB / 1.008 GB, free: 120.2 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4032/2.713, allocations: 218.7 MB / 1.221 GB, free: 94.07 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008487/2.722, allocations: 6.111 MB / 1.227 GB, free: 92.13 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.008922/2.731, allocations: 4.007 MB / 1.231 GB, free: 89.14 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005496/2.736, allocations: 3.935 MB / 1.235 GB, free: 85.21 MB / 0.5451 GB Notification: Performance of SimCode: time 1.182e-06/2.736, allocations: 0 / 1.235 GB, free: 85.21 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.461/3.197, allocations: 146.5 MB / 1.378 GB, free: 155.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/3.197, allocations: 201.2 kB / 1.378 GB, free: 155.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.498/8.695, allocations: 0 / 1.378 GB, free: 155.5 MB / 0.5607 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat