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.00166/0.00166, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.002051/0.002051, allocations: 215 kB / 20.13 MB, free: 2.949 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.527/1.527, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.04769/0.04769, allocations: 9.236 MB / 318.8 MB, free: 15.54 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.002027/0.002027, allocations: 71.06 kB / 443.2 MB, free: 39.44 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08964, allocations: 55.44 MB / 498.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.0186/0.1082, allocations: 18.55 MB / 0.5051 GB, free: 3.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01184/0.1201, allocations: 5.636 MB / 0.5106 GB, free: 14.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00247/0.1226, allocations: 103.6 kB / 0.5107 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004146/0.1267, allocations: 1.789 MB / 0.5125 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008455/0.1352, allocations: 3.038 MB / 0.5154 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00195/0.1371, allocations: 0.7254 MB / 0.5161 GB, free: 8.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009791/0.1469, allocations: 6.78 MB / 0.5228 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00609/0.153, allocations: 3.441 MB / 0.5261 GB, free: 14.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004507/0.1575, allocations: 2.215 MB / 0.5283 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005522/0.163, allocations: 3.164 MB / 0.5314 GB, free: 8.949 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001844/0.1649, allocations: 0.543 MB / 0.5319 GB, free: 8.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003962/0.1688, allocations: 1.369 MB / 0.5332 GB, free: 7.035 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0044/0.1732, allocations: 2.738 MB / 0.5359 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006001/0.1792, allocations: 3.534 MB / 0.5394 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01678/0.196, allocations: 11.36 MB / 0.5505 GB, free: 5.328 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.196, allocations: 0 / 0.5505 GB, free: 5.328 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.196, allocations: 0 / 0.5505 GB, free: 5.328 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003767/0.1964, allocations: 0 / 0.5505 GB, free: 5.328 MB / 414.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.03709/0.2335, allocations: 11.18 MB / 0.5614 GB, free: 10.05 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.2335, allocations: 12.03 kB / 0.5614 GB, free: 10.04 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001882/0.2337, allocations: 152.8 kB / 0.5615 GB, free: 9.887 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002376/0.2361, allocations: 1.114 MB / 0.5626 GB, free: 8.762 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01438/0.2505, allocations: 3.592 MB / 0.5661 GB, free: 5.16 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008615/0.2591, allocations: 3.645 MB / 0.5697 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003617/0.2594, allocations: 340.4 kB / 0.57 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001882/0.2613, allocations: 451.6 kB / 0.5704 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3024/0.5637, allocations: 17.6 MB / 0.5876 GB, free: 76.05 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003321/0.5641, allocations: 76.73 kB / 0.5877 GB, free: 76.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001618/0.5657, allocations: 223.9 kB / 0.5879 GB, free: 76.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006973/0.5726, allocations: 3.708 MB / 0.5915 GB, free: 75.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03221/0.6049, allocations: 15.39 MB / 0.6066 GB, free: 70.86 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0841/0.689, allocations: 71.77 MB / 0.6767 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02585/0.7148, allocations: 7.167 MB / 0.6837 GB, free: 9.145 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007091/0.7219, allocations: 3.206 MB / 0.6868 GB, free: 5.922 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03811/0.76, allocations: 14.51 MB / 0.701 GB, free: 7.098 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.757e-05/0.7601, allocations: 76.81 kB / 0.701 GB, free: 7.012 MB / 478.1 MB Notification: Performance of pre-optimization done (n=373): time 9.508e-06/0.7601, allocations: 0 / 0.701 GB, free: 7.012 MB / 478.1 MB Notification: Performance of matching and sorting (n=420): time 0.09203/0.8521, allocations: 25.89 MB / 0.7263 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/0.8523, allocations: 200.8 kB / 0.7265 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01617/0.8685, allocations: 6.598 MB / 0.733 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001127/0.8696, allocations: 85.7 kB / 0.733 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.006504/0.8761, allocations: 4.963 MB / 0.7379 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00291/0.879, allocations: 1.62 MB / 0.7395 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007599/0.8866, allocations: 2.147 MB / 0.7416 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.8868, allocations: 305.1 kB / 0.7419 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008645/0.8954, allocations: 3.597 MB / 0.7454 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01525/0.9107, allocations: 9.614 MB / 0.7548 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02282/0.9335, allocations: 14.42 MB / 0.7688 GB, free: 11.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002063/0.9337, allocations: 63.94 kB / 0.7689 GB, free: 11.64 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.03218/0.9659, allocations: 13.39 MB / 0.782 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003671/0.9662, allocations: 92 kB / 0.7821 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005625/0.9668, allocations: 216.1 kB / 0.7823 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002031/0.9688, allocations: 0.5987 MB / 0.7829 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01009/0.9789, allocations: 2.464 MB / 0.7853 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008967/0.9879, allocations: 5.09 MB / 0.7902 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008087/0.996, allocations: 491.6 kB / 0.7907 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002103/0.9981, allocations: 0.6288 MB / 0.7913 GB, free: 4.492 MB / 0.5606 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.00864/1.007, allocations: 3.516 MB / 0.7947 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002198/1.009, allocations: 0.6092 MB / 0.7953 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2588/1.268, allocations: 5.207 MB / 0.8004 GB, free: 187.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.196e-05/1.268, allocations: 74.86 kB / 0.8005 GB, free: 187.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-05/1.268, allocations: 6.75 kB / 0.8005 GB, free: 187.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.15e-05/1.268, allocations: 21.5 kB / 0.8005 GB, free: 187.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03287/1.301, allocations: 19.98 MB / 0.82 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.096e-05/1.301, allocations: 28.59 kB / 0.8201 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003142/1.304, allocations: 0.6694 MB / 0.8207 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009632/1.305, allocations: 352.8 kB / 0.8211 GB, free: 179 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004608/1.305, allocations: 100.3 kB / 0.8211 GB, free: 178.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005715/1.311, allocations: 6.704 MB / 0.8277 GB, free: 173.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.362e-05/1.311, allocations: 44.2 kB / 0.8277 GB, free: 173.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01409/1.325, allocations: 9.773 MB / 0.8373 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003107/1.328, allocations: 1.162 MB / 0.8384 GB, free: 168.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001568/1.33, allocations: 97.88 kB / 0.8385 GB, free: 168.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003551/1.333, allocations: 160.5 kB / 0.8387 GB, free: 168.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009687/1.334, allocations: 319.6 kB / 0.839 GB, free: 168.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004092/1.335, allocations: 131.5 kB / 0.8391 GB, free: 168 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.009028/1.344, allocations: 4.358 MB / 0.8433 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/1.344, allocations: 0 / 0.8433 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00944/1.353, allocations: 1.595 MB / 0.8449 GB, free: 162.8 MB / 0.5606 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.0152/1.369, allocations: 10.52 MB / 0.8552 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01496/1.383, allocations: 8.436 MB / 0.8634 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.889e-05/1.384, allocations: 4 kB / 0.8634 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004604/1.388, allocations: 2.936 MB / 0.8663 GB, free: 140.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006329/1.394, allocations: 0.8655 MB / 0.8671 GB, free: 139.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1158/1.51, allocations: 80.68 MB / 0.9459 GB, free: 49.39 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005681/1.516, allocations: 4.927 MB / 0.9507 GB, free: 44.45 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007424/1.523, allocations: 3.223 MB / 0.9539 GB, free: 41.22 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004699/1.528, allocations: 3.182 MB / 0.957 GB, free: 38.04 MB / 0.5606 GB Notification: Performance of SimCode: time 1.132e-06/1.528, allocations: 0 / 0.957 GB, free: 38.04 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4667/1.995, allocations: 119.9 MB / 1.074 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.27/29.26, allocations: 11.31 kB / 1.074 GB, free: 152.6 MB / 0.5762 GB " [Timeout remaining time 631] (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: 32.68604974000482] Failed to read output from testmodel.py, exit status != 0: 29.495127154979855 29.516430666 29.316772249 Calling exit ...