Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 216.3 kB / 22.25 MB, free: 5.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 230.6 MB / 256 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04901/0.04901, allocations: 9.245 MB / 321.7 MB, free: 10.02 MB / 254.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 63.91 kB / 447.8 MB, free: 14.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1109, allocations: 55.46 MB / 0.4914 GB, free: 7.453 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01517/0.126, allocations: 12.99 MB / 0.5041 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008821/0.1349, allocations: 3.621 MB / 0.5076 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002313/0.1372, allocations: 63.81 kB / 0.5077 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002108/0.1393, allocations: 0.7885 MB / 0.5085 GB, free: 5.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005858/0.1451, allocations: 2.089 MB / 0.5105 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009258/0.1461, allocations: 139.8 kB / 0.5106 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2475/0.3936, allocations: 4.05 MB / 0.5146 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003013/0.3966, allocations: 2.052 MB / 0.5166 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002481/0.3991, allocations: 1.431 MB / 0.518 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003218/0.4023, allocations: 2.209 MB / 0.5202 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008486/0.4032, allocations: 318 kB / 0.5205 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.4053, allocations: 0.9319 MB / 0.5214 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002334/0.4076, allocations: 1.91 MB / 0.5232 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002721/0.4103, allocations: 2.434 MB / 0.5256 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.422, allocations: 7.62 MB / 0.5331 GB, free: 4.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.422, allocations: 1.906 kB / 0.5331 GB, free: 4.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.422, allocations: 3.938 kB / 0.5331 GB, free: 4.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004197/0.4224, allocations: 0.5938 kB / 0.5331 GB, free: 4.629 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: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.02999/0.4524, allocations: 7.179 MB / 0.5401 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.4525, allocations: 8.812 kB / 0.5401 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002203/0.4547, allocations: 0.8803 MB / 0.5409 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01247/0.4672, allocations: 3.291 MB / 0.5442 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006627/0.4738, allocations: 2.014 MB / 0.5461 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002288/0.474, allocations: 236.7 kB / 0.5463 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001244/0.4753, allocations: 308.5 kB / 0.5466 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02485/0.5001, allocations: 13.45 MB / 0.5598 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001387/0.5002, allocations: 51.95 kB / 0.5598 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005514/0.5008, allocations: 160 kB / 0.56 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005769/0.5066, allocations: 3.086 MB / 0.563 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0277/0.5343, allocations: 11.94 MB / 0.5746 GB, free: 5.004 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07471/0.609, allocations: 47.76 MB / 0.6213 GB, free: 4.633 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.012/0.621, allocations: 2.756 MB / 0.624 GB, free: 1.859 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002467/0.6234, allocations: 1.285 MB / 0.6252 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01387/0.6373, allocations: 6.368 MB / 0.6315 GB, free: 10.24 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.6374, allocations: 54.19 kB / 0.6315 GB, free: 10.18 MB / 478.1 MB Notification: Performance of pre-optimization done (n=202): time 4.479e-06/0.6374, allocations: 0 / 0.6315 GB, free: 10.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=211): time 0.02026/0.6576, allocations: 10.35 MB / 0.6416 GB, free: 15.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.919e-05/0.6577, allocations: 153.8 kB / 0.6418 GB, free: 15.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00766/0.6654, allocations: 5.15 MB / 0.6468 GB, free: 10.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.6656, allocations: 53.7 kB / 0.6468 GB, free: 10.41 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003187/0.6688, allocations: 4.101 MB / 0.6508 GB, free: 6.332 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009844/0.6698, allocations: 0.8685 MB / 0.6517 GB, free: 5.473 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00218/0.6719, allocations: 1.614 MB / 0.6533 GB, free: 3.852 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.6721, allocations: 305.1 kB / 0.6536 GB, free: 3.551 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003758/0.6758, allocations: 2.237 MB / 0.6557 GB, free: 1.309 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008205/0.684, allocations: 7.325 MB / 0.6629 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01452/0.6985, allocations: 10.4 MB / 0.6731 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001426/0.6987, allocations: 52 kB / 0.6731 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01906/0.7178, allocations: 9.227 MB / 0.6821 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000114/0.7179, allocations: 80 kB / 0.6822 GB, free: 1.379 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002108/0.7181, allocations: 180 kB / 0.6824 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000243/0.7183, allocations: 240 kB / 0.6826 GB, free: 0.9688 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005896/0.7242, allocations: 1.836 MB / 0.6844 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003142/0.7245, allocations: 362.5 kB / 0.6847 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005247/0.7298, allocations: 375 kB / 0.6851 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000979/0.7308, allocations: 0.496 MB / 0.6856 GB, free: 13.91 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (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],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (994): * Single equations (assignments): 987 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00514/0.7359, allocations: 2.647 MB / 0.6882 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009142/0.7368, allocations: 441 kB / 0.6886 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003743/0.7406, allocations: 1.966 MB / 0.6905 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001233/0.7407, allocations: 35.98 kB / 0.6905 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.7407, allocations: 0 / 0.6905 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-05/0.7407, allocations: 15.8 kB / 0.6905 GB, free: 8.797 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/0.7573, allocations: 7.711 MB / 0.6981 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.714e-05/0.7574, allocations: 12 kB / 0.6981 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.7586, allocations: 299.5 kB / 0.6984 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00021/0.7588, allocations: 40.84 kB / 0.6984 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001376/0.759, allocations: 54.41 kB / 0.6985 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.7603, allocations: 1.29 MB / 0.6997 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.83e-05/0.7603, allocations: 24.03 kB / 0.6997 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00669/0.767, allocations: 4.404 MB / 0.704 GB, free: 10.47 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002062/0.769, allocations: 0.6257 MB / 0.7047 GB, free: 9.844 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005394/0.7696, allocations: 51.98 kB / 0.7047 GB, free: 9.793 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.7709, allocations: 67.94 kB / 0.7048 GB, free: 9.727 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/0.7712, allocations: 152.1 kB / 0.7049 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.7713, allocations: 83.09 kB / 0.705 GB, free: 9.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006002/0.7773, allocations: 3.21 MB / 0.7081 GB, free: 6.297 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.8e-07/0.7773, allocations: 0 / 0.7081 GB, free: 6.297 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006504/0.7838, allocations: 1.073 MB / 0.7092 GB, free: 5.227 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 59 * Number of states: 2 (constantSpeed.phi,gearB.phi) * 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 (163): * Single equations (assignments): 155 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00679/0.7906, allocations: 5.1 MB / 0.7142 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009212/0.7998, allocations: 5.013 MB / 0.7191 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/0.7999, allocations: 4 kB / 0.7191 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001917/0.8018, allocations: 1.162 MB / 0.7202 GB, free: 9.777 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003416/0.8052, allocations: 0.5585 MB / 0.7207 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3259/1.131, allocations: 54.32 MB / 0.7738 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003933/1.135, allocations: 3.761 MB / 0.7775 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005385/1.14, allocations: 2.451 MB / 0.7799 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003323/1.144, allocations: 2.195 MB / 0.782 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of SimCode: time 2.705e-06/1.144, allocations: 3.281 kB / 0.782 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1207/1.264, allocations: 74.17 MB / 0.8544 GB, free: 87.17 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.73/28.99, allocations: 7.938 kB / 0.8544 GB, free: 87.16 MB / 0.5606 GB " [Timeout remaining time 631] (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 31.9724600490008] Failed to read output from testmodel.py, exit status != 0: 29.15666209399933 29.178493993 28.751978595 Calling exit ...