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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 110 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.04666/0.04666, allocations: 9.249 MB / 311.9 MB, free: 0.75 MB / 238.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 68.06 kB / 434 MB, free: 14.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09594/0.09779, allocations: 54.26 MB / 488.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.02069/0.1185, allocations: 18.6 MB / 0.495 GB, free: 5.031 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01175/0.1302, allocations: 5.671 MB / 0.5006 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002619/0.1328, allocations: 87.81 kB / 0.5006 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003739/0.1366, allocations: 1.796 MB / 0.5024 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007702/0.1443, allocations: 3.077 MB / 0.5054 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001957/0.1462, allocations: 0.7332 MB / 0.5061 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0102/0.1564, allocations: 6.726 MB / 0.5127 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1971/0.3535, allocations: 3.449 MB / 0.5161 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003593/0.3571, allocations: 2.196 MB / 0.5182 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004403/0.3615, allocations: 3.171 MB / 0.5213 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001381/0.3629, allocations: 0.5419 MB / 0.5218 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002928/0.3658, allocations: 1.383 MB / 0.5232 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003148/0.369, allocations: 2.773 MB / 0.5259 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004804/0.3738, allocations: 3.569 MB / 0.5294 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01359/0.3874, allocations: 11.46 MB / 0.5406 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3874, allocations: 0 / 0.5406 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3874, allocations: 0 / 0.5406 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003603/0.3878, allocations: 7.422 kB / 0.5406 GB, free: 0.7852 MB / 382.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.03444/0.4222, allocations: 11.11 MB / 0.5514 GB, free: 9.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4222, allocations: 9.406 kB / 0.5514 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002073/0.4243, allocations: 1.118 MB / 0.5525 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/0.4364, allocations: 3.591 MB / 0.556 GB, free: 7.332 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008726/0.4451, allocations: 3.75 MB / 0.5597 GB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003018/0.4454, allocations: 338.2 kB / 0.56 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001526/0.4469, allocations: 451.6 kB / 0.5604 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03363/0.4805, allocations: 17.61 MB / 0.5776 GB, free: 1.801 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002147/0.4808, allocations: 71.11 kB / 0.5777 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008839/0.4816, allocations: 226.4 kB / 0.5779 GB, free: 1.609 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006749/0.4884, allocations: 3.71 MB / 0.5815 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03422/0.5226, allocations: 15.39 MB / 0.5966 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1152/0.6378, allocations: 71.77 MB / 0.6667 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02352/0.6613, allocations: 7.151 MB / 0.6736 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006298/0.6676, allocations: 3.212 MB / 0.6768 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03226/0.6998, allocations: 14.51 MB / 0.6909 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.822e-05/0.6999, allocations: 77.47 kB / 0.691 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=373): time 6.602e-06/0.6999, allocations: 4 kB / 0.691 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of matching and sorting (n=420): time 0.07169/0.7716, allocations: 25.9 MB / 0.7163 GB, free: 2.695 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.7717, allocations: 196.9 kB / 0.7165 GB, free: 2.465 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1975/0.9693, allocations: 6.594 MB / 0.7229 GB, free: 187.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000599/0.9699, allocations: 85.36 kB / 0.723 GB, free: 187.1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002891/0.9727, allocations: 4.976 MB / 0.7279 GB, free: 184.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00144/0.9742, allocations: 1.618 MB / 0.7295 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003087/0.9773, allocations: 2.145 MB / 0.7316 GB, free: 182.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.776e-05/0.9773, allocations: 309.4 kB / 0.7319 GB, free: 181.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005852/0.9832, allocations: 3.6 MB / 0.7354 GB, free: 180.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007642/0.9908, allocations: 9.609 MB / 0.7448 GB, free: 171.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/1.003, allocations: 14.43 MB / 0.7588 GB, free: 159 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001565/1.003, allocations: 58.53 kB / 0.7589 GB, free: 159 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02113/1.024, allocations: 13.38 MB / 0.772 GB, free: 151.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001181/1.024, allocations: 101.8 kB / 0.7721 GB, free: 151.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001907/1.024, allocations: 212 kB / 0.7723 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009313/1.025, allocations: 0.6018 MB / 0.7729 GB, free: 151.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007466/1.033, allocations: 2.451 MB / 0.7752 GB, free: 148.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005445/1.038, allocations: 5.114 MB / 0.7802 GB, free: 144.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008535/1.047, allocations: 496.1 kB / 0.7807 GB, free: 143.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001518/1.048, allocations: 0.6278 MB / 0.7813 GB, free: 143.1 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.005173/1.054, allocations: 3.517 MB / 0.7848 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.055, allocations: 0.6053 MB / 0.7854 GB, free: 139.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006749/1.061, allocations: 5.211 MB / 0.7904 GB, free: 134.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.494e-05/1.061, allocations: 71.56 kB / 0.7905 GB, free: 134.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/1.061, allocations: 7.797 kB / 0.7905 GB, free: 134.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.572e-05/1.061, allocations: 26.47 kB / 0.7905 GB, free: 134.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02696/1.088, allocations: 19.98 MB / 0.8101 GB, free: 116.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.184e-05/1.088, allocations: 24 kB / 0.8101 GB, free: 116.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002605/1.091, allocations: 0.6794 MB / 0.8107 GB, free: 116.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007017/1.092, allocations: 351.7 kB / 0.8111 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002656/1.092, allocations: 104 kB / 0.8112 GB, free: 115.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004722/1.097, allocations: 6.706 MB / 0.8177 GB, free: 108.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.324e-05/1.097, allocations: 42.81 kB / 0.8178 GB, free: 108.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01007/1.107, allocations: 9.776 MB / 0.8273 GB, free: 98.24 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003289/1.11, allocations: 1.16 MB / 0.8284 GB, free: 97.05 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/1.111, allocations: 95.98 kB / 0.8285 GB, free: 96.96 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002974/1.114, allocations: 161.9 kB / 0.8287 GB, free: 96.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004614/1.115, allocations: 314.2 kB / 0.829 GB, free: 96.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002199/1.115, allocations: 143.9 kB / 0.8291 GB, free: 96.36 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00627/1.121, allocations: 4.358 MB / 0.8334 GB, free: 92.01 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/1.121, allocations: 0 / 0.8334 GB, free: 92.01 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009501/1.131, allocations: 1.623 MB / 0.835 GB, free: 90.39 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.01076/1.142, allocations: 10.52 MB / 0.8452 GB, free: 79.37 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01131/1.153, allocations: 8.443 MB / 0.8535 GB, free: 70.94 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.742e-05/1.153, allocations: 8 kB / 0.8535 GB, free: 70.93 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003546/1.156, allocations: 2.934 MB / 0.8564 GB, free: 67.96 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004883/1.161, allocations: 0.8594 MB / 0.8572 GB, free: 67.15 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2893/1.451, allocations: 80.7 MB / 0.936 GB, free: 185.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006103/1.457, allocations: 4.937 MB / 0.9408 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006391/1.463, allocations: 3.224 MB / 0.944 GB, free: 184 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003836/1.467, allocations: 3.191 MB / 0.9471 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.323e-06/1.467, allocations: 0 / 0.9471 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1576/1.625, allocations: 120 MB / 1.064 GB, free: 73.44 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.97/27.6, allocations: 3.938 kB / 1.064 GB, free: 73.44 MB / 0.5606 GB " [Timeout remaining time 632] (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: 30.41103669302538] Failed to read output from testmodel.py, exit status != 0: 27.756161351222545 27.764817095 27.375246676 Calling exit ...