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.001368/0.001368, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001468/0.001468, allocations: 214.8 kB / 23.04 MB, free: 5.074 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.548/1.548, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.04923/0.04923, allocations: 9.239 MB / 322.5 MB, free: 10.13 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.00283/0.00283, allocations: 67.89 kB / 448.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1134, allocations: 55.47 MB / 0.4922 GB, free: 7.531 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.02164/0.135, allocations: 18.6 MB / 0.5104 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2745/0.4095, allocations: 5.644 MB / 0.5159 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00392/0.4134, allocations: 105.1 kB / 0.516 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004152/0.4176, allocations: 1.798 MB / 0.5177 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008275/0.4259, allocations: 3.055 MB / 0.5207 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002159/0.428, allocations: 0.7263 MB / 0.5214 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01099/0.439, allocations: 6.781 MB / 0.528 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007312/0.4463, allocations: 3.688 MB / 0.5316 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005592/0.4519, allocations: 2.228 MB / 0.5338 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006655/0.4586, allocations: 3.162 MB / 0.5369 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002517/0.4611, allocations: 0.5428 MB / 0.5374 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005717/0.4668, allocations: 1.361 MB / 0.5388 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004993/0.4718, allocations: 2.744 MB / 0.5414 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009939/0.4817, allocations: 3.538 MB / 0.5449 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02192/0.5036, allocations: 11.36 MB / 0.556 GB, free: 7.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.5036, allocations: 0 / 0.556 GB, free: 7.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.5036, allocations: 0 / 0.556 GB, free: 7.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000522/0.5042, allocations: 0 / 0.556 GB, free: 7.012 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.04294/0.5471, allocations: 11.1 MB / 0.5668 GB, free: 13.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.5472, allocations: 8.031 kB / 0.5668 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002666/0.5474, allocations: 156.8 kB / 0.567 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00396/0.5514, allocations: 1.119 MB / 0.5681 GB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01508/0.5665, allocations: 3.588 MB / 0.5716 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00933/0.5758, allocations: 3.571 MB / 0.5751 GB, free: 4.688 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003596/0.5762, allocations: 342.6 kB / 0.5754 GB, free: 4.418 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001813/0.578, allocations: 454.8 kB / 0.5758 GB, free: 4.043 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03782/0.6158, allocations: 17.6 MB / 0.593 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003477/0.6161, allocations: 71.34 kB / 0.5931 GB, free: 1.391 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00204/0.6182, allocations: 226.1 kB / 0.5933 GB, free: 1.238 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007274/0.6255, allocations: 3.709 MB / 0.5969 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03699/0.6624, allocations: 15.4 MB / 0.612 GB, free: 14.12 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1157/0.7782, allocations: 71.59 MB / 0.6819 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02526/0.8034, allocations: 6.25 MB / 0.688 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006964/0.8104, allocations: 3.206 MB / 0.6911 GB, free: 11.67 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03422/0.8446, allocations: 12.63 MB / 0.7034 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.533e-05/0.8447, allocations: 68.88 kB / 0.7035 GB, free: 15.06 MB / 0.545 GB Notification: Performance of pre-optimization done (n=373): time 7.595e-06/0.8447, allocations: 0 / 0.7035 GB, free: 15.06 MB / 0.545 GB Notification: Performance of matching and sorting (n=420): time 0.3415/1.186, allocations: 25.65 MB / 0.7286 GB, free: 172.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/1.186, allocations: 202.5 kB / 0.7288 GB, free: 172.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01619/1.202, allocations: 6.591 MB / 0.7352 GB, free: 170.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008604/1.203, allocations: 83.97 kB / 0.7353 GB, free: 170.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004336/1.208, allocations: 4.974 MB / 0.7401 GB, free: 166.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002386/1.21, allocations: 1.62 MB / 0.7417 GB, free: 165.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006429/1.216, allocations: 2.147 MB / 0.7438 GB, free: 164.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.047e-05/1.217, allocations: 301.1 kB / 0.7441 GB, free: 164.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007938/1.224, allocations: 3.603 MB / 0.7476 GB, free: 163 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01159/1.236, allocations: 9.608 MB / 0.757 GB, free: 153.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01734/1.253, allocations: 14.44 MB / 0.7711 GB, free: 141.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004059/1.254, allocations: 56.91 kB / 0.7711 GB, free: 141.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02914/1.283, allocations: 13.38 MB / 0.7842 GB, free: 135.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001707/1.283, allocations: 96 kB / 0.7843 GB, free: 135 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003768/1.283, allocations: 208 kB / 0.7845 GB, free: 134.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/1.285, allocations: 0.6047 MB / 0.7851 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009207/1.294, allocations: 2.449 MB / 0.7875 GB, free: 132.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005977/1.3, allocations: 4.989 MB / 0.7924 GB, free: 127.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009561/1.31, allocations: 0.4973 MB / 0.7928 GB, free: 127.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002277/1.312, allocations: 0.6236 MB / 0.7935 GB, free: 126.5 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.008795/1.321, allocations: 3.521 MB / 0.7969 GB, free: 123.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001883/1.322, allocations: 0.6053 MB / 0.7975 GB, free: 122.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009442/1.332, allocations: 5.221 MB / 0.8026 GB, free: 117.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.47e-05/1.332, allocations: 71.84 kB / 0.8027 GB, free: 117.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/1.332, allocations: 4 kB / 0.8027 GB, free: 117.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.808e-05/1.332, allocations: 24.67 kB / 0.8027 GB, free: 117.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03473/1.367, allocations: 19.94 MB / 0.8222 GB, free: 97.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.8e-05/1.367, allocations: 28.06 kB / 0.8222 GB, free: 97.47 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00307/1.37, allocations: 0.6796 MB / 0.8228 GB, free: 96.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008455/1.371, allocations: 350.1 kB / 0.8232 GB, free: 96.45 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005317/1.371, allocations: 107.9 kB / 0.8233 GB, free: 96.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005121/1.376, allocations: 6.399 MB / 0.8295 GB, free: 89.62 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.519e-05/1.376, allocations: 31.88 kB / 0.8296 GB, free: 89.59 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0123/1.389, allocations: 9.784 MB / 0.8391 GB, free: 79.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003416/1.392, allocations: 1.086 MB / 0.8402 GB, free: 78.23 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002013/1.394, allocations: 95.98 kB / 0.8403 GB, free: 78.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004127/1.398, allocations: 159.8 kB / 0.8404 GB, free: 77.98 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007031/1.399, allocations: 329 kB / 0.8407 GB, free: 77.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/1.399, allocations: 139.3 kB / 0.8409 GB, free: 77.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00723/1.406, allocations: 4.354 MB / 0.8451 GB, free: 73.18 MB / 0.545 GB Notification: Performance of sort global known variables: time 3e-07/1.406, allocations: 0 / 0.8451 GB, free: 73.18 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01051/1.417, allocations: 1.594 MB / 0.8467 GB, free: 71.59 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.01309/1.43, allocations: 10.52 MB / 0.8569 GB, free: 60.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01486/1.445, allocations: 8.435 MB / 0.8652 GB, free: 52.15 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.952e-05/1.445, allocations: 4.844 kB / 0.8652 GB, free: 52.14 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00503/1.45, allocations: 2.941 MB / 0.8681 GB, free: 49.17 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008237/1.458, allocations: 0.8596 MB / 0.8689 GB, free: 48.36 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4101/1.868, allocations: 80.8 MB / 0.9478 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01091/1.879, allocations: 4.922 MB / 0.9526 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.01017/1.889, allocations: 3.224 MB / 0.9558 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008254/1.898, allocations: 3.18 MB / 0.9589 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of SimCode: time 2.214e-06/1.898, allocations: 0 / 0.9589 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2312/2.129, allocations: 123.8 MB / 1.08 GB, free: 44.97 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.53/33.66, allocations: 11.97 kB / 1.08 GB, free: 44.96 MB / 0.5606 GB " [Timeout remaining time 626] (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: 37.078659001970664] Failed to read output from testmodel.py, exit status != 0: 33.9132201729808 33.931216384 33.423510526 Calling exit ...