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/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 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 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 96.2 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002115/0.002115, allocations: 176.3 kB / 16.56 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.906/1.906, allocations: 205.4 MB / 222.7 MB, free: 5.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4916/0.4916, allocations: 43.54 MB / 314.5 MB, free: 8.793 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005566/0.0005567, allocations: 24 kB / 384 MB, free: 7.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1454, allocations: 58.84 MB / 442.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3345/0.4799, allocations: 70.44 MB / 0.5012 GB, free: 4.574 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0451/0.5251, allocations: 15.96 MB / 0.5168 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02328/0.5484, allocations: 352.8 kB / 0.5172 GB, free: 9.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01783/0.5663, allocations: 3.591 MB / 0.5207 GB, free: 8.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04638/0.6127, allocations: 10.15 MB / 0.5306 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005965/0.6187, allocations: 0.7941 MB / 0.5314 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.04718/0.6659, allocations: 28.05 MB / 0.5588 GB, free: 9.152 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01364/0.6796, allocations: 7.81 MB / 0.5664 GB, free: 1.316 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004892/0.6845, allocations: 1.985 MB / 0.5683 GB, free: 15.32 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005184/0.6898, allocations: 2.648 MB / 0.5709 GB, free: 12.67 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002036/0.6918, allocations: 288 kB / 0.5712 GB, free: 12.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003984/0.6958, allocations: 0.9989 MB / 0.5722 GB, free: 11.39 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004568/0.7004, allocations: 3.094 MB / 0.5752 GB, free: 8.285 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004265/0.7047, allocations: 1.649 MB / 0.5768 GB, free: 6.625 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01683/0.7216, allocations: 10.95 MB / 0.5875 GB, free: 11.64 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.7216, allocations: 0 / 0.5875 GB, free: 11.64 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.7216, allocations: 0 / 0.5875 GB, free: 11.64 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005566/0.7222, allocations: 0 / 0.5875 GB, free: 11.64 MB / 462.1 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.02043/0.7427, allocations: 7.747 MB / 0.595 GB, free: 3.809 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/0.7427, allocations: 8.031 kB / 0.5951 GB, free: 3.801 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005564/0.7483, allocations: 1.439 MB / 0.5965 GB, free: 2.352 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05571/0.804, allocations: 11.53 MB / 0.6077 GB, free: 6.793 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01657/0.8207, allocations: 5.363 MB / 0.613 GB, free: 1.348 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005483/0.8212, allocations: 455.5 kB / 0.6134 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003394/0.8246, allocations: 0.5855 MB / 0.614 GB, free: 324 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5182/1.343, allocations: 20.53 MB / 0.634 GB, free: 129.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004702/1.343, allocations: 68.91 kB / 0.6341 GB, free: 129.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003503/1.347, allocations: 284.8 kB / 0.6343 GB, free: 129.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008118/1.355, allocations: 4.355 MB / 0.6386 GB, free: 129.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04485/1.4, allocations: 18.12 MB / 0.6563 GB, free: 125.3 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1278/1.528, allocations: 75.24 MB / 0.7298 GB, free: 71.38 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01562/1.543, allocations: 8.13 MB / 0.7377 GB, free: 63 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004207/1.544, allocations: 65.36 kB / 0.7378 GB, free: 62.95 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/1.544, allocations: 77.19 kB / 0.7379 GB, free: 62.87 MB / 494.1 MB Notification: Performance of pre-optimization done (n=450): time 1.003e-05/1.544, allocations: 4 kB / 0.7379 GB, free: 62.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=497): time 0.09893/1.643, allocations: 42.74 MB / 0.7796 GB, free: 19.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/1.643, allocations: 223 kB / 0.7798 GB, free: 19.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01297/1.656, allocations: 6.744 MB / 0.7864 GB, free: 12.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001536/1.658, allocations: 90.95 kB / 0.7865 GB, free: 12.78 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004154/1.662, allocations: 5.704 MB / 0.7921 GB, free: 7.074 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002961/1.665, allocations: 1.804 MB / 0.7938 GB, free: 5.285 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009881/1.666, allocations: 222.1 kB / 0.794 GB, free: 5.07 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0006172/1.666, allocations: 0.7934 MB / 0.7948 GB, free: 4.27 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007246/1.674, allocations: 4.94 MB / 0.7996 GB, free: 15.33 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01593/1.69, allocations: 11.06 MB / 0.8104 GB, free: 1.277 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0148/1.705, allocations: 7.361 MB / 0.8176 GB, free: 9.906 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002414/1.705, allocations: 60 kB / 0.8177 GB, free: 9.848 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.3388/2.044, allocations: 17.27 MB / 0.8345 GB, free: 140.4 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001726/2.044, allocations: 97.19 kB / 0.8346 GB, free: 140.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003602/2.044, allocations: 218.9 kB / 0.8348 GB, free: 140.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00507/2.049, allocations: 1.853 MB / 0.8366 GB, free: 140.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00994/2.059, allocations: 2.582 MB / 0.8392 GB, free: 140.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01736/2.077, allocations: 15.05 MB / 0.8539 GB, free: 133.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0122/2.089, allocations: 0.6695 MB / 0.8545 GB, free: 133.4 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003443/2.093, allocations: 0.6327 MB / 0.8551 GB, free: 133.3 MB / 0.5138 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.01278/2.105, allocations: 4.189 MB / 0.8592 GB, free: 131.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002089/2.107, allocations: 0.6151 MB / 0.8598 GB, free: 131.7 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01972/2.127, allocations: 9.836 MB / 0.8694 GB, free: 128 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000201/2.127, allocations: 91.44 kB / 0.8695 GB, free: 128 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.89e-05/2.127, allocations: 8.75 kB / 0.8695 GB, free: 128 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001272/2.128, allocations: 20.95 kB / 0.8695 GB, free: 128 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04924/2.177, allocations: 21.92 MB / 0.891 GB, free: 120.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.835e-05/2.177, allocations: 15.75 kB / 0.891 GB, free: 120.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004187/2.181, allocations: 0.7888 MB / 0.8917 GB, free: 120 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0042/2.185, allocations: 1.503 MB / 0.8932 GB, free: 119.7 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001169/2.187, allocations: 89.59 kB / 0.8933 GB, free: 119.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0139/2.2, allocations: 14.06 MB / 0.907 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/2.201, allocations: 15.94 kB / 0.907 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02428/2.225, allocations: 17.53 MB / 0.9241 GB, free: 94.45 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004699/2.23, allocations: 1.407 MB / 0.9255 GB, free: 93.07 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001784/2.231, allocations: 93.98 kB / 0.9256 GB, free: 92.98 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00409/2.235, allocations: 311.5 kB / 0.9259 GB, free: 92.68 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008008/2.236, allocations: 300.7 kB / 0.9262 GB, free: 92.39 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003175/2.237, allocations: 128 kB / 0.9263 GB, free: 92.27 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006675/2.243, allocations: 4.227 MB / 0.9304 GB, free: 88.05 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8.72e-07/2.243, allocations: 0 / 0.9304 GB, free: 88.05 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01211/2.255, allocations: 2.072 MB / 0.9325 GB, free: 85.99 MB / 0.5138 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.02448/2.28, allocations: 20.28 MB / 0.9523 GB, free: 65.35 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01797/2.298, allocations: 12.21 MB / 0.9642 GB, free: 53.13 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.617e-05/2.298, allocations: 1.438 kB / 0.9642 GB, free: 53.13 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006982/2.305, allocations: 4.971 MB / 0.9691 GB, free: 48.12 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004261/2.309, allocations: 0.7317 MB / 0.9698 GB, free: 47.41 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4003/2.71, allocations: 223.6 MB / 1.188 GB, free: 33.82 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01465/2.724, allocations: 6.259 MB / 1.194 GB, free: 31.84 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01349/2.738, allocations: 4.105 MB / 1.198 GB, free: 31.56 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007136/2.745, allocations: 4.022 MB / 1.202 GB, free: 28.23 MB / 0.545 GB Notification: Performance of SimCode: time 1.553e-06/2.745, allocations: 4 kB / 1.202 GB, free: 28.23 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4976/3.243, allocations: 150.2 MB / 1.349 GB, free: 101.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/3.243, allocations: 196.8 kB / 1.349 GB, free: 101.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.217/9.46, allocations: 4 kB / 1.349 GB, free: 101.2 MB / 0.545 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) Environment - environmentSimulation: 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