Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_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.001876/0.001876, allocations: 117.3 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002228/0.002228, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002067, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2752, allocations: 50.55 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01718/0.2924, allocations: 13.44 MB / 422.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.3033, allocations: 4.548 MB / 426.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00267/0.306, allocations: 91.75 kB / 426.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008585/0.3146, allocations: 4.186 MB / 431 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006079/0.3208, allocations: 2.128 MB / 433.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002508/0.3233, allocations: 0.9243 MB / 434.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009451/0.3328, allocations: 6.127 MB / 440.2 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007387/0.3402, allocations: 5.204 MB / 445.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003881/0.3441, allocations: 2.119 MB / 447.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004662/0.3488, allocations: 2.792 MB / 450.3 MB, free: 7.809 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001461/0.3503, allocations: 472 kB / 450.8 MB, free: 7.348 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003224/0.3536, allocations: 1.338 MB / 452.1 MB, free: 6.008 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00303/0.3566, allocations: 2.494 MB / 454.6 MB, free: 3.508 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00429/0.3609, allocations: 2.894 MB / 457.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01201/0.373, allocations: 9.196 MB / 466.7 MB, free: 7.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.373, allocations: 0 / 466.7 MB, free: 7.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.373, allocations: 0 / 466.7 MB, free: 7.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002995/0.3733, allocations: 0 / 466.7 MB, free: 7.363 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.0162/0.3895, allocations: 6.418 MB / 473.1 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.3896, allocations: 8.031 kB / 473.1 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00199/0.3916, allocations: 0.8385 MB / 474 MB, free: 8 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03777/0.4294, allocations: 6.093 MB / 480.1 MB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01023/0.4397, allocations: 4.221 MB / 484.3 MB, free: 5.629 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003114/0.44, allocations: 301.3 kB / 484.6 MB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001824/0.4419, allocations: 427.7 kB / 485 MB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02281/0.4647, allocations: 11.42 MB / 496.4 MB, free: 8.746 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001791/0.4649, allocations: 55.59 kB / 496.5 MB, free: 8.691 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006737/0.4656, allocations: 183.9 kB / 496.6 MB, free: 8.512 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003524/0.4691, allocations: 2.03 MB / 498.7 MB, free: 6.469 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01915/0.4883, allocations: 9.674 MB / 0.4964 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3101/0.7985, allocations: 44.86 MB / 0.5402 GB, free: 113 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01665/0.8152, allocations: 4.235 MB / 0.5444 GB, free: 112.3 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003455/0.8187, allocations: 2.346 MB / 0.5467 GB, free: 112.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01399/0.8327, allocations: 9.443 MB / 0.5559 GB, free: 107.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/0.8327, allocations: 58.47 kB / 0.5559 GB, free: 107.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.729e-06/0.8328, allocations: 0 / 0.5559 GB, free: 107.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.05012/0.8829, allocations: 18.44 MB / 0.574 GB, free: 96.82 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.717e-05/0.883, allocations: 205.2 kB / 0.5742 GB, free: 96.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00762/0.8906, allocations: 4.709 MB / 0.5787 GB, free: 91.95 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004081/0.8911, allocations: 53.7 kB / 0.5788 GB, free: 91.89 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002188/0.8933, allocations: 3.735 MB / 0.5824 GB, free: 88.44 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008938/0.8942, allocations: 0.7966 MB / 0.5832 GB, free: 87.65 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002555/0.8968, allocations: 1.266 MB / 0.5845 GB, free: 86.38 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.587e-05/0.8968, allocations: 301.1 kB / 0.5847 GB, free: 86.08 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003036/0.8999, allocations: 2.185 MB / 0.5869 GB, free: 83.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004745/0.9047, allocations: 6.004 MB / 0.5927 GB, free: 76.11 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007961/0.9126, allocations: 8.902 MB / 0.6014 GB, free: 65.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001279/0.9128, allocations: 36 kB / 0.6015 GB, free: 65.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01481/0.9276, allocations: 8.783 MB / 0.6101 GB, free: 56.58 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.9279, allocations: 66.81 kB / 0.6101 GB, free: 56.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002292/0.9281, allocations: 132 kB / 0.6102 GB, free: 56.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003116/0.9312, allocations: 1.07 MB / 0.6113 GB, free: 55.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004419/0.9357, allocations: 1.427 MB / 0.6127 GB, free: 53.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008635/0.9444, allocations: 8.857 MB / 0.6213 GB, free: 44.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004889/0.9493, allocations: 346.8 kB / 0.6217 GB, free: 44.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/0.9504, allocations: 376 kB / 0.622 GB, free: 44.05 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (753): * Single equations (assignments): 748 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,33,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003888/0.9543, allocations: 2.448 MB / 0.6244 GB, free: 41.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008676/0.9551, allocations: 437.1 kB / 0.6248 GB, free: 41.16 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005753/0.9609, allocations: 3.493 MB / 0.6282 GB, free: 37.66 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-05/0.961, allocations: 24 kB / 0.6283 GB, free: 37.64 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/0.961, allocations: 12 kB / 0.6283 GB, free: 37.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-05/0.961, allocations: 7.969 kB / 0.6283 GB, free: 37.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/0.9769, allocations: 8.944 MB / 0.637 GB, free: 28.63 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/0.977, allocations: 4 kB / 0.637 GB, free: 28.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/0.9785, allocations: 295.6 kB / 0.6373 GB, free: 28.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00245/0.9809, allocations: 0.8623 MB / 0.6381 GB, free: 27.47 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002852/0.9813, allocations: 35.98 kB / 0.6382 GB, free: 27.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008304/0.9896, allocations: 7.919 MB / 0.6459 GB, free: 19.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.9896, allocations: 3.938 kB / 0.6459 GB, free: 19.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008484/0.9981, allocations: 6.065 MB / 0.6518 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.9993, allocations: 474.1 kB / 0.6523 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000832/1, allocations: 35.66 kB / 0.6523 GB, free: 12.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001942/1.002, allocations: 103.9 kB / 0.6524 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004758/1.003, allocations: 121 kB / 0.6525 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/1.003, allocations: 48 kB / 0.6526 GB, free: 12.36 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005356/1.008, allocations: 2.977 MB / 0.6555 GB, free: 9.391 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.593e-06/1.008, allocations: 0 / 0.6555 GB, free: 9.391 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006228/1.014, allocations: 1.133 MB / 0.6566 GB, free: 8.262 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (147): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009006/1.023, allocations: 6.731 MB / 0.6632 GB, free: 1.492 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01002/1.033, allocations: 5.532 MB / 0.6686 GB, free: 11.96 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/1.034, allocations: 0 / 0.6686 GB, free: 11.96 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003766/1.037, allocations: 1.893 MB / 0.6704 GB, free: 10.04 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004973/1.042, allocations: 0.5621 MB / 0.671 GB, free: 9.484 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1031/1.145, allocations: 51.14 MB / 0.7209 GB, free: 328 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007969/1.153, allocations: 3.827 MB / 0.7246 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005712/1.159, allocations: 1.984 MB / 0.7266 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00449/1.164, allocations: 2.327 MB / 0.7289 GB, free: 8.137 MB / 0.5294 GB Notification: Performance of SimCode: time 1.282e-06/1.164, allocations: 0 / 0.7289 GB, free: 8.137 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3626/1.526, allocations: 82.99 MB / 0.8099 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.99/27.52, allocations: 14.67 kB / 0.8099 GB, free: 128.5 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches