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.001932/0.001932, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002351/0.002351, allocations: 212.4 kB / 22.24 MB, free: 5.238 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 7.797 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.0507/0.0507, allocations: 9.24 MB / 321.7 MB, free: 9.852 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.002112/0.002112, allocations: 71.88 kB / 447.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.1012, allocations: 55.47 MB / 0.4914 GB, free: 7.02 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01488/0.1161, allocations: 11.22 MB / 0.5023 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0082/0.1243, allocations: 3.439 MB / 0.5057 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.1262, allocations: 63.81 kB / 0.5057 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002301/0.1285, allocations: 0.7808 MB / 0.5065 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005591/0.1341, allocations: 2.081 MB / 0.5085 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.1348, allocations: 143.8 kB / 0.5087 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005648/0.1405, allocations: 4.059 MB / 0.5126 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2213/0.3618, allocations: 2.034 MB / 0.5146 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.364, allocations: 1.436 MB / 0.516 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003118/0.3671, allocations: 2.122 MB / 0.5181 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001174/0.3683, allocations: 317.9 kB / 0.5184 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002314/0.3706, allocations: 0.8149 MB / 0.5192 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002134/0.3728, allocations: 1.916 MB / 0.5211 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002177/0.3749, allocations: 1.688 MB / 0.5227 GB, free: 6.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.385, allocations: 7.659 MB / 0.5302 GB, free: 5.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.385, allocations: 1.375 kB / 0.5302 GB, free: 5.477 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.385, allocations: 0.9375 kB / 0.5302 GB, free: 5.477 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002763/0.3853, allocations: 0 / 0.5302 GB, free: 5.477 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.0276/0.4129, allocations: 7.179 MB / 0.5372 GB, free: 3.168 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.413, allocations: 9.75 kB / 0.5372 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00241/0.4154, allocations: 0.8795 MB / 0.5381 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01207/0.4274, allocations: 3.292 MB / 0.5413 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00695/0.4344, allocations: 2.031 MB / 0.5433 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003673/0.4348, allocations: 236.1 kB / 0.5435 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001892/0.4366, allocations: 313 kB / 0.5438 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02674/0.4634, allocations: 13.45 MB / 0.5569 GB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001778/0.4636, allocations: 52.42 kB / 0.557 GB, free: 7.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008066/0.4644, allocations: 152.8 kB / 0.5571 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00562/0.47, allocations: 3.093 MB / 0.5601 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02772/0.4977, allocations: 11.92 MB / 0.5718 GB, free: 8.418 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06863/0.5663, allocations: 45.7 MB / 0.6164 GB, free: 10.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01217/0.5785, allocations: 2.757 MB / 0.6191 GB, free: 7.344 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00278/0.5813, allocations: 1.293 MB / 0.6204 GB, free: 6.047 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.016/0.5973, allocations: 5.989 MB / 0.6262 GB, free: 92 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.843e-05/0.5973, allocations: 55.5 kB / 0.6263 GB, free: 28 kB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 6.031e-06/0.5973, allocations: 0 / 0.6263 GB, free: 28 kB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.02339/0.6207, allocations: 10.37 MB / 0.6364 GB, free: 5.625 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.6208, allocations: 153.8 kB / 0.6365 GB, free: 5.441 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01065/0.6315, allocations: 5.46 MB / 0.6419 GB, free: 15.97 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004613/0.632, allocations: 49.7 kB / 0.6419 GB, free: 15.92 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004963/0.6369, allocations: 4.096 MB / 0.6459 GB, free: 11.85 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/0.6387, allocations: 0.8677 MB / 0.6468 GB, free: 10.99 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003582/0.6423, allocations: 1.61 MB / 0.6483 GB, free: 9.375 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.6424, allocations: 305.1 kB / 0.6486 GB, free: 9.074 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003954/0.6464, allocations: 2.241 MB / 0.6508 GB, free: 6.828 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009142/0.6555, allocations: 7.324 MB / 0.658 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01441/0.6699, allocations: 10.4 MB / 0.6681 GB, free: 256 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002206/0.6701, allocations: 52 kB / 0.6682 GB, free: 204 kB / 0.4981 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01992/0.6901, allocations: 9.208 MB / 0.6772 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000133/0.6902, allocations: 84.19 kB / 0.6772 GB, free: 6.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002781/0.6905, allocations: 188 kB / 0.6774 GB, free: 6.738 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002489/0.6907, allocations: 236 kB / 0.6776 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006179/0.6969, allocations: 1.84 MB / 0.6794 GB, free: 4.664 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003103/0.6972, allocations: 354.4 kB / 0.6798 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005609/0.7028, allocations: 371.7 kB / 0.6801 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001291/0.7041, allocations: 0.4947 MB / 0.6806 GB, free: 3.465 MB / 0.5137 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.005601/0.7097, allocations: 2.662 MB / 0.6832 GB, free: 0.793 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009593/0.7107, allocations: 441 kB / 0.6836 GB, free: 368 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004016/0.7147, allocations: 1.962 MB / 0.6856 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001229/0.7148, allocations: 35.98 kB / 0.6856 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.7148, allocations: 0 / 0.6856 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.222e-05/0.7148, allocations: 7.969 kB / 0.6856 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01911/0.734, allocations: 7.392 MB / 0.6928 GB, free: 6.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.163e-05/0.734, allocations: 13.27 kB / 0.6928 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.7353, allocations: 307.5 kB / 0.6931 GB, free: 6.445 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001606/0.7354, allocations: 36.84 kB / 0.6932 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/0.7356, allocations: 55.92 kB / 0.6932 GB, free: 6.352 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.7367, allocations: 1.291 MB / 0.6945 GB, free: 4.949 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.587e-05/0.7368, allocations: 23.94 kB / 0.6945 GB, free: 4.926 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006748/0.7435, allocations: 4.409 MB / 0.6988 GB, free: 336 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002228/0.7457, allocations: 0.6257 MB / 0.6994 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007646/0.7465, allocations: 46.64 kB / 0.6995 GB, free: 15.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/0.748, allocations: 71.94 kB / 0.6995 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002637/0.7483, allocations: 152.1 kB / 0.6997 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.7484, allocations: 78.64 kB / 0.6997 GB, free: 15.36 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006595/0.755, allocations: 3.21 MB / 0.7029 GB, free: 12.16 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.71e-07/0.755, allocations: 4.062 kB / 0.7029 GB, free: 12.16 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00777/0.7628, allocations: 1.077 MB / 0.7039 GB, free: 11.08 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.007564/0.7704, allocations: 5.096 MB / 0.7089 GB, free: 5.785 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009948/0.7803, allocations: 5.005 MB / 0.7138 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.78e-05/0.7803, allocations: 0 / 0.7138 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00213/0.7825, allocations: 1.158 MB / 0.7149 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003736/0.7862, allocations: 0.5643 MB / 0.7155 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3262/1.112, allocations: 54.31 MB / 0.7685 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003902/1.116, allocations: 3.242 MB / 0.7717 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004908/1.121, allocations: 2.451 MB / 0.7741 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003127/1.124, allocations: 2.202 MB / 0.7762 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.593e-06/1.124, allocations: 3.562 kB / 0.7762 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1137/1.238, allocations: 70.41 MB / 0.845 GB, free: 93.11 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.35/19.58, allocations: 11.92 kB / 0.845 GB, free: 93.1 MB / 0.5606 GB " [Timeout remaining time 640] (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: 22.411556529346853] Failed to read output from testmodel.py, exit status != 0: 19.745986874215305 19.756277554 19.368792648 Calling exit ...