Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.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.001447/0.001447, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.0024/0.0024, allocations: 220 kB / 23.03 MB, free: 4.941 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.539/1.539, allocations: 230.6 MB / 256.8 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.05065/0.05065, allocations: 9.243 MB / 322.5 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.PlanetaryGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.PlanetaryGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear",fmuType="cs",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.001986/0.001986, allocations: 67.89 kB / 448.5 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1104, allocations: 55.47 MB / 0.4921 GB, free: 7.039 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.02025/0.1307, allocations: 15.88 MB / 0.5076 GB, free: 7.086 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01448/0.1452, allocations: 5.376 MB / 0.5129 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004407/0.1496, allocations: 107.6 kB / 0.513 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2873/0.4369, allocations: 1.737 MB / 0.5147 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01027/0.4471, allocations: 3.059 MB / 0.5177 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002894/0.45, allocations: 0.7204 MB / 0.5184 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01116/0.4612, allocations: 6.774 MB / 0.525 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008257/0.4694, allocations: 3.684 MB / 0.5286 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006257/0.4757, allocations: 2.225 MB / 0.5308 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007256/0.483, allocations: 3.173 MB / 0.5339 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003135/0.4861, allocations: 0.5417 MB / 0.5344 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004925/0.491, allocations: 1.233 MB / 0.5356 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005319/0.4963, allocations: 2.748 MB / 0.5383 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009893/0.5062, allocations: 2.486 MB / 0.5407 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02018/0.5264, allocations: 11.42 MB / 0.5518 GB, free: 11.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.5264, allocations: 0 / 0.5518 GB, free: 11.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5264, allocations: 0 / 0.5518 GB, free: 11.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005041/0.5269, allocations: 3.25 kB / 0.5519 GB, free: 11.07 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2454 * Number of variables: 2454 Notification: Performance of Generate backend data structure: time 0.04261/0.5695, allocations: 11.09 MB / 0.5627 GB, free: 2.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.5696, allocations: 12.03 kB / 0.5627 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002564/0.5698, allocations: 152.8 kB / 0.5628 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003765/0.5736, allocations: 1.116 MB / 0.5639 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.015/0.5886, allocations: 3.591 MB / 0.5674 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009489/0.5981, allocations: 3.597 MB / 0.5709 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/0.5985, allocations: 339.2 kB / 0.5713 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002112/0.6006, allocations: 444.4 kB / 0.5717 GB, free: 9.723 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03859/0.6392, allocations: 17.62 MB / 0.5889 GB, free: 7.129 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000256/0.6394, allocations: 79.34 kB / 0.589 GB, free: 7.051 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001292/0.6407, allocations: 218.4 kB / 0.5892 GB, free: 6.906 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006763/0.6475, allocations: 3.711 MB / 0.5928 GB, free: 3.215 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03888/0.6864, allocations: 15.4 MB / 0.6078 GB, free: 3.805 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1117/0.7981, allocations: 68.72 MB / 0.675 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02451/0.8226, allocations: 6.246 MB / 0.6811 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006404/0.829, allocations: 3.21 MB / 0.6842 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03069/0.8597, allocations: 11.67 MB / 0.6956 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.157e-05/0.8597, allocations: 68.81 kB / 0.6957 GB, free: 8.578 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=373): time 8.866e-06/0.8598, allocations: 0 / 0.6957 GB, free: 8.578 MB / 0.5294 GB Notification: Performance of matching and sorting (n=420): time 0.3473/1.207, allocations: 25.69 MB / 0.7207 GB, free: 176.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.615e-05/1.207, allocations: 198.3 kB / 0.7209 GB, free: 176.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01229/1.219, allocations: 6.587 MB / 0.7274 GB, free: 176.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009587/1.22, allocations: 84.39 kB / 0.7274 GB, free: 176.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004675/1.225, allocations: 4.969 MB / 0.7323 GB, free: 173.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00209/1.227, allocations: 1.615 MB / 0.7339 GB, free: 171.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004547/1.232, allocations: 2.149 MB / 0.736 GB, free: 170.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.898e-05/1.232, allocations: 303.2 kB / 0.7363 GB, free: 170.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007392/1.239, allocations: 3.601 MB / 0.7398 GB, free: 169.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01134/1.25, allocations: 9.611 MB / 0.7492 GB, free: 160.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01782/1.268, allocations: 14.44 MB / 0.7633 GB, free: 148.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000505/1.269, allocations: 61 kB / 0.7633 GB, free: 148.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02763/1.296, allocations: 13.38 MB / 0.7764 GB, free: 142.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001977/1.297, allocations: 95.78 kB / 0.7765 GB, free: 142.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003682/1.297, allocations: 210.6 kB / 0.7767 GB, free: 142.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/1.298, allocations: 0.6068 MB / 0.7773 GB, free: 142.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008982/1.307, allocations: 2.445 MB / 0.7797 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005812/1.313, allocations: 4.92 MB / 0.7845 GB, free: 135.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008555/1.322, allocations: 0.4917 MB / 0.7849 GB, free: 135.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002024/1.324, allocations: 0.6295 MB / 0.7856 GB, free: 134.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 42 (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],fixed.color[3],fixed.color[2],fixed.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],planetary.body3D.sphereColor[3],planetary.body3D.sphereColor[2],planetary.body3D.sphereColor[1],planetary.carrierPart.color[3],planetary.carrierPart.color[2],planetary.carrierPart.color[1],planetary.carrierAngle.color[3],planetary.carrierAngle.color[2],planetary.carrierAngle.color[1],planetary.bearing_Carrier.cylinderColor[3],planetary.bearing_Carrier.cylinderColor[2],planetary.bearing_Carrier.cylinderColor[1],planetary.bearing_Planet.cylinderColor[3],planetary.bearing_Planet.cylinderColor[2],planetary.bearing_Planet.cylinderColor[1],planetary.bearing_Ring.cylinderColor[3],planetary.bearing_Ring.cylinderColor[2],planetary.bearing_Ring.cylinderColor[1],planetary.bearing_Sun.cylinderColor[3],planetary.bearing_Sun.cylinderColor[2],planetary.bearing_Sun.cylinderColor[1],planetary.planet.sphereColor[3],planetary.planet.sphereColor[2],planetary.planet.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1303): * Single equations (assignments): 1294 * Array equations: 8 * 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 {(6,28,44.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007041/1.331, allocations: 3.516 MB / 0.789 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001388/1.332, allocations: 0.6091 MB / 0.7896 GB, free: 131 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008311/1.34, allocations: 5.211 MB / 0.7947 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.01e-05/1.34, allocations: 71.94 kB / 0.7947 GB, free: 126.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.942e-05/1.34, allocations: 12 kB / 0.7948 GB, free: 126.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.145e-05/1.34, allocations: 18.94 kB / 0.7948 GB, free: 126.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03159/1.372, allocations: 19.23 MB / 0.8135 GB, free: 106.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.857e-05/1.372, allocations: 24 kB / 0.8136 GB, free: 106.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003116/1.375, allocations: 0.6786 MB / 0.8142 GB, free: 106.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008895/1.376, allocations: 338.1 kB / 0.8146 GB, free: 105.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005127/1.377, allocations: 108 kB / 0.8147 GB, free: 105.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005274/1.382, allocations: 6.351 MB / 0.8209 GB, free: 99.11 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.498e-05/1.382, allocations: 38.39 kB / 0.8209 GB, free: 99.08 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01216/1.394, allocations: 9.773 MB / 0.8304 GB, free: 88.81 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003221/1.397, allocations: 1.084 MB / 0.8315 GB, free: 87.73 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001629/1.399, allocations: 110 kB / 0.8316 GB, free: 87.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003571/1.403, allocations: 155.9 kB / 0.8318 GB, free: 87.47 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006905/1.403, allocations: 332.9 kB / 0.8321 GB, free: 87.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002797/1.403, allocations: 132 kB / 0.8322 GB, free: 87.02 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006551/1.41, allocations: 4.359 MB / 0.8365 GB, free: 82.67 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/1.41, allocations: 0 / 0.8365 GB, free: 82.67 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01023/1.42, allocations: 1.589 MB / 0.838 GB, free: 81.08 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 104 * Number of states: 6 (heatCapacitor.T,planetary.planet.phi,planetary.bearing_Carrier.phi,planetary.bearing_Carrier.w,sunSpeed.phi,ringTorque.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 (365): * Single equations (assignments): 356 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,22,52.0%), (1,1,100.0%), (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.0126/1.433, allocations: 10.53 MB / 0.8483 GB, free: 70.06 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01415/1.447, allocations: 8.438 MB / 0.8565 GB, free: 61.64 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.402e-05/1.447, allocations: 4 kB / 0.8565 GB, free: 61.64 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004337/1.451, allocations: 2.934 MB / 0.8594 GB, free: 58.66 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006236/1.458, allocations: 0.8502 MB / 0.8602 GB, free: 57.86 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3995/1.857, allocations: 80.78 MB / 0.9391 GB, free: 186.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01118/1.868, allocations: 4.43 MB / 0.9434 GB, free: 186.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.01119/1.88, allocations: 3.229 MB / 0.9466 GB, free: 186.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006714/1.886, allocations: 3.181 MB / 0.9497 GB, free: 186.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.743e-06/1.886, allocations: 0 / 0.9497 GB, free: 186.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1902/2.076, allocations: 119.3 MB / 1.066 GB, free: 90.96 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.64/30.72, allocations: 7.922 kB / 1.066 GB, free: 90.96 MB / 0.5762 GB " [Timeout remaining time 629] (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 34.053222474991344] Failed to read output from testmodel.py, exit status != 0: 30.96705080999527 30.987668511 30.456763064 Calling exit ...