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.0008156/0.0008156, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008917/0.0008917, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8947/0.8947, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.02804/0.02804, allocations: 7.117 MB / 266.3 MB, free: 6.328 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 3.938 kB / 392.4 MB, free: 3.977 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.758e-05/1.929e-05, allocations: 6.219 kB / 392.4 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.00932/0.009339, allocations: 11.21 MB / 403.6 MB, free: 8.703 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005668/0.01501, allocations: 3.446 MB / 407.1 MB, free: 5.242 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.01613, allocations: 63.81 kB / 407.1 MB, free: 5.18 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.01736, allocations: 0.7883 MB / 407.9 MB, free: 4.387 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003186/0.02055, allocations: 2.134 MB / 410.1 MB, free: 2.242 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003228/0.02087, allocations: 143.7 kB / 410.2 MB, free: 2.102 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1687/0.1896, allocations: 4.152 MB / 414.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002949/0.1925, allocations: 2.069 MB / 416.4 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004439/0.197, allocations: 2.136 MB / 418.6 MB, free: 15.06 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003644/0.2006, allocations: 2.049 MB / 420.6 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001114/0.2017, allocations: 317.4 kB / 420.9 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002184/0.2039, allocations: 0.9077 MB / 421.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002511/0.2064, allocations: 1.976 MB / 423.8 MB, free: 14.47 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002288/0.2087, allocations: 1.243 MB / 425 MB, free: 13.9 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008824/0.2175, allocations: 7.509 MB / 432.5 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.287e-06/0.2175, allocations: 4.891 kB / 432.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2175, allocations: 0 / 432.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003913/0.2179, allocations: 2.812 kB / 432.6 MB, free: 10.71 MB / 330.7 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.01799/0.2359, allocations: 7.164 MB / 439.7 MB, free: 6.227 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.236, allocations: 9.562 kB / 439.7 MB, free: 6.227 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001611/0.2376, allocations: 0.8846 MB / 440.6 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007082/0.2447, allocations: 3.353 MB / 444 MB, free: 3.805 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004016/0.2487, allocations: 2.036 MB / 446 MB, free: 1.934 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.2488, allocations: 236.1 kB / 446.2 MB, free: 1.762 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007921/0.2496, allocations: 315.7 kB / 446.5 MB, free: 1.512 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01837/0.268, allocations: 13.44 MB / 460 MB, free: 3.477 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001338/0.2681, allocations: 47.77 kB / 460 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005764/0.2687, allocations: 163.9 kB / 460.2 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003368/0.2721, allocations: 3.096 MB / 463.3 MB, free: 316 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0201/0.2922, allocations: 11.87 MB / 475.2 MB, free: 4.664 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05204/0.3442, allocations: 45.74 MB / 0.5087 GB, free: 6.199 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006979/0.3512, allocations: 2.879 MB / 0.5115 GB, free: 3.289 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001967/0.3531, allocations: 1.274 MB / 0.5127 GB, free: 2.008 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009405/0.3626, allocations: 6.092 MB / 0.5187 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.3626, allocations: 51.56 kB / 0.5187 GB, free: 11.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=202): time 5.39e-06/0.3626, allocations: 4 kB / 0.5187 GB, free: 11.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=211): time 0.01713/0.3797, allocations: 10.53 MB / 0.529 GB, free: 1.289 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.3798, allocations: 145.8 kB / 0.5292 GB, free: 1.113 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006919/0.3867, allocations: 5.452 MB / 0.5345 GB, free: 11.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000304/0.387, allocations: 47.42 kB / 0.5345 GB, free: 11.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002387/0.3894, allocations: 4.053 MB / 0.5385 GB, free: 7.578 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009129/0.3903, allocations: 0.8589 MB / 0.5393 GB, free: 6.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001703/0.392, allocations: 1.591 MB / 0.5409 GB, free: 5.133 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.257e-05/0.3921, allocations: 309 kB / 0.5412 GB, free: 4.828 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003044/0.3951, allocations: 2.229 MB / 0.5434 GB, free: 2.594 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005364/0.4005, allocations: 7.318 MB / 0.5505 GB, free: 8.754 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009122/0.4096, allocations: 10.38 MB / 0.5606 GB, free: 11.87 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001887/0.4098, allocations: 52 kB / 0.5607 GB, free: 11.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01526/0.4251, allocations: 9.206 MB / 0.5697 GB, free: 2.621 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.4252, allocations: 84 kB / 0.5698 GB, free: 2.539 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002216/0.4254, allocations: 180 kB / 0.5699 GB, free: 2.363 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001613/0.4256, allocations: 236 kB / 0.5702 GB, free: 2.133 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004099/0.4297, allocations: 1.844 MB / 0.572 GB, free: 292 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004515/0.4301, allocations: 354.6 kB / 0.5723 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004342/0.4344, allocations: 375.7 kB / 0.5726 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009498/0.4354, allocations: 0.4983 MB / 0.5731 GB, free: 15.07 MB / 490.7 MB 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.004508/0.4399, allocations: 2.649 MB / 0.5757 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007408/0.4406, allocations: 441.8 kB / 0.5761 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002458/0.4431, allocations: 1.948 MB / 0.578 GB, free: 10.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.485e-05/0.4432, allocations: 35.98 kB / 0.5781 GB, free: 9.984 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.4432, allocations: 3.938 kB / 0.5781 GB, free: 9.98 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.4432, allocations: 11.91 kB / 0.5781 GB, free: 9.969 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.455, allocations: 7.42 MB / 0.5853 GB, free: 2.352 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.763e-05/0.4551, allocations: 12 kB / 0.5854 GB, free: 2.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007923/0.4558, allocations: 303.4 kB / 0.5856 GB, free: 2.043 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001403/0.456, allocations: 40.8 kB / 0.5857 GB, free: 2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.4561, allocations: 59.33 kB / 0.5857 GB, free: 1.945 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009603/0.4571, allocations: 1.287 MB / 0.587 GB, free: 0.543 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.377e-06/0.4571, allocations: 15.94 kB / 0.587 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1758/0.6329, allocations: 4.351 MB / 0.5913 GB, free: 160.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001631/0.6345, allocations: 0.6211 MB / 0.5919 GB, free: 160.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004622/0.6349, allocations: 55.12 kB / 0.5919 GB, free: 160.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008259/0.6358, allocations: 69.61 kB / 0.592 GB, free: 160.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.636, allocations: 155.2 kB / 0.5921 GB, free: 160.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-05/0.6361, allocations: 82.77 kB / 0.5922 GB, free: 160.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004751/0.6408, allocations: 3.208 MB / 0.5953 GB, free: 159.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 3e-08/0.6408, allocations: 0 / 0.5953 GB, free: 159.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005757/0.6466, allocations: 1.072 MB / 0.5964 GB, free: 159 MB / 490.7 MB 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.005089/0.6517, allocations: 5.056 MB / 0.6013 GB, free: 156.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007844/0.6595, allocations: 4.981 MB / 0.6062 GB, free: 154.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.9e-05/0.6595, allocations: 3.875 kB / 0.6062 GB, free: 154.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001534/0.6611, allocations: 1.154 MB / 0.6073 GB, free: 154.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002741/0.6638, allocations: 0.5585 MB / 0.6079 GB, free: 154.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05757/0.7214, allocations: 53.93 MB / 0.6605 GB, free: 102.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002844/0.7242, allocations: 3.243 MB / 0.6637 GB, free: 99.34 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003244/0.7275, allocations: 2.448 MB / 0.6661 GB, free: 96.88 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002145/0.7296, allocations: 2.203 MB / 0.6682 GB, free: 94.67 MB / 490.7 MB Notification: Performance of SimCode: time 1.823e-06/0.7296, allocations: 0 / 0.6682 GB, free: 94.67 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08136/0.811, allocations: 70.34 MB / 0.7369 GB, free: 25.14 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.59, allocations: 8.062 kB / 0.7369 GB, free: 25.13 MB / 490.7 MB " [Timeout remaining time 647] (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: 14.525125308893621] Failed to read output from testmodel.py, exit status != 0: 12.719076436012983 12.725072146 12.5059375 Calling exit ...