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.001312/0.001312, 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.001688/0.001688, allocations: 217.7 kB / 22.25 MB, free: 5.121 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.42/1.42, allocations: 230.6 MB / 256 MB, free: 7.996 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.05056/0.05056, allocations: 9.238 MB / 321.7 MB, free: 10.14 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.PlanetaryGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear",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.001997/0.001997, allocations: 71.83 kB / 447.8 MB, free: 15.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09959/0.1016, allocations: 55.47 MB / 0.4914 GB, free: 7.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.02207/0.1237, allocations: 18.59 MB / 0.5096 GB, free: 4.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2046/0.3282, allocations: 5.65 MB / 0.5151 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002877/0.3311, allocations: 108.1 kB / 0.5152 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003186/0.3343, allocations: 1.795 MB / 0.517 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006499/0.3408, allocations: 3.051 MB / 0.5199 GB, free: 7.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00141/0.3422, allocations: 0.7305 MB / 0.5207 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008301/0.3505, allocations: 6.784 MB / 0.5273 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005222/0.3557, allocations: 3.686 MB / 0.5309 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003802/0.3595, allocations: 2.226 MB / 0.5331 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004615/0.3641, allocations: 3.16 MB / 0.5361 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001308/0.3654, allocations: 0.5415 MB / 0.5367 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002858/0.3683, allocations: 1.362 MB / 0.538 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002196/0.3705, allocations: 2.743 MB / 0.5407 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003413/0.3739, allocations: 3.542 MB / 0.5441 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01244/0.3863, allocations: 11.36 MB / 0.5552 GB, free: 6.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.3863, allocations: 0 / 0.5552 GB, free: 6.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3863, allocations: 2.812 kB / 0.5552 GB, free: 6.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002151/0.3866, allocations: 0 / 0.5552 GB, free: 6.98 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.03325/0.4198, allocations: 11.1 MB / 0.5661 GB, free: 13.06 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.4199, allocations: 8.031 kB / 0.5661 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001923/0.4218, allocations: 1.114 MB / 0.5672 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.434, allocations: 3.594 MB / 0.5707 GB, free: 8.398 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007634/0.4417, allocations: 3.572 MB / 0.5742 GB, free: 4.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002717/0.4419, allocations: 337.6 kB / 0.5745 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001151/0.4431, allocations: 454.9 kB / 0.5749 GB, free: 4.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03061/0.4737, allocations: 17.6 MB / 0.5921 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001833/0.4739, allocations: 83.33 kB / 0.5922 GB, free: 1.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007361/0.4746, allocations: 222.1 kB / 0.5924 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005675/0.4803, allocations: 3.707 MB / 0.596 GB, free: 13.68 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03231/0.5126, allocations: 15.39 MB / 0.611 GB, free: 14.27 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1005/0.6131, allocations: 71.59 MB / 0.681 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02179/0.6349, allocations: 6.26 MB / 0.6871 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005346/0.6403, allocations: 3.203 MB / 0.6902 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02717/0.6674, allocations: 12.61 MB / 0.7025 GB, free: 15.29 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.233e-05/0.6675, allocations: 80.73 kB / 0.7026 GB, free: 15.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=373): time 6.652e-06/0.6675, allocations: 4 kB / 0.7026 GB, free: 15.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=420): time 0.2592/0.9267, allocations: 25.65 MB / 0.7276 GB, free: 171.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.873e-05/0.9268, allocations: 199.8 kB / 0.7278 GB, free: 170.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01024/0.937, allocations: 6.595 MB / 0.7343 GB, free: 169.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005575/0.9376, allocations: 83.38 kB / 0.7344 GB, free: 169 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003087/0.9407, allocations: 4.972 MB / 0.7392 GB, free: 165.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001381/0.942, allocations: 1.617 MB / 0.7408 GB, free: 163.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003074/0.9451, allocations: 2.15 MB / 0.7429 GB, free: 162.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.212e-05/0.9452, allocations: 305.7 kB / 0.7432 GB, free: 162.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006476/0.9516, allocations: 3.603 MB / 0.7467 GB, free: 161.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008262/0.9599, allocations: 9.607 MB / 0.7561 GB, free: 152.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01292/0.9728, allocations: 14.44 MB / 0.7702 GB, free: 139.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001562/0.973, allocations: 58.91 kB / 0.7702 GB, free: 139.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.01963/0.9926, allocations: 13.37 MB / 0.7833 GB, free: 134.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.9927, allocations: 99.7 kB / 0.7834 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002533/0.993, allocations: 212.8 kB / 0.7836 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.994, allocations: 0.6038 MB / 0.7842 GB, free: 133.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006962/1.001, allocations: 2.448 MB / 0.7866 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00517/1.006, allocations: 4.986 MB / 0.7914 GB, free: 126.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006808/1.013, allocations: 493.9 kB / 0.7919 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007509/1.014, allocations: 0.631 MB / 0.7925 GB, free: 125.9 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.004518/1.018, allocations: 3.52 MB / 0.796 GB, free: 122.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000807/1.019, allocations: 0.6053 MB / 0.7966 GB, free: 122.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006956/1.026, allocations: 5.222 MB / 0.8017 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.458e-05/1.026, allocations: 71.83 kB / 0.8017 GB, free: 117.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.756e-05/1.026, allocations: 8 kB / 0.8017 GB, free: 117.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-05/1.026, allocations: 18.94 kB / 0.8018 GB, free: 117.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02582/1.052, allocations: 19.95 MB / 0.8212 GB, free: 97.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.853e-05/1.052, allocations: 24 kB / 0.8213 GB, free: 97.44 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00262/1.055, allocations: 0.6821 MB / 0.8219 GB, free: 96.76 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008064/1.055, allocations: 350 kB / 0.8223 GB, free: 96.41 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002468/1.056, allocations: 107.6 kB / 0.8224 GB, free: 96.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004945/1.061, allocations: 6.403 MB / 0.8286 GB, free: 89.58 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.772e-05/1.061, allocations: 35.88 kB / 0.8286 GB, free: 89.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01119/1.072, allocations: 9.778 MB / 0.8382 GB, free: 79.29 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003396/1.075, allocations: 1.082 MB / 0.8393 GB, free: 78.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001076/1.076, allocations: 95.98 kB / 0.8393 GB, free: 78.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002657/1.079, allocations: 163.8 kB / 0.8395 GB, free: 77.95 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004341/1.079, allocations: 333.6 kB / 0.8398 GB, free: 77.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003406/1.08, allocations: 140 kB / 0.84 GB, free: 77.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005737/1.086, allocations: 4.354 MB / 0.8442 GB, free: 73.14 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.086, allocations: 4 kB / 0.8442 GB, free: 73.14 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008234/1.094, allocations: 1.59 MB / 0.8458 GB, free: 71.55 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.01116/1.105, allocations: 10.52 MB / 0.856 GB, free: 60.53 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01184/1.117, allocations: 8.439 MB / 0.8643 GB, free: 52.11 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.477e-05/1.117, allocations: 4 kB / 0.8643 GB, free: 52.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00355/1.12, allocations: 2.932 MB / 0.8671 GB, free: 49.13 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004831/1.125, allocations: 0.8643 MB / 0.868 GB, free: 48.32 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2975/1.423, allocations: 80.79 MB / 0.9469 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00599/1.429, allocations: 4.919 MB / 0.9517 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006648/1.435, allocations: 3.227 MB / 0.9548 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003803/1.439, allocations: 3.18 MB / 0.9579 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of SimCode: time 9.32e-07/1.439, allocations: 1.75 kB / 0.9579 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1733/1.612, allocations: 123.8 MB / 1.079 GB, free: 45.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.11/29.72, allocations: 0 / 1.079 GB, free: 45.05 MB / 0.5606 GB " [Timeout remaining time 630] (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.582219030940905] Failed to read output from testmodel.py, exit status != 0: 29.925054498016834 29.942914946 29.553271274 Calling exit ...