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.001379/0.001379, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001611/0.001611, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.444/1.444, allocations: 230.6 MB / 256 MB, free: 7.789 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.04991/0.04991, allocations: 9.245 MB / 321.7 MB, free: 9.848 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.002065/0.002065, allocations: 67.89 kB / 447.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1053, allocations: 55.46 MB / 0.4914 GB, free: 7.004 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.01971/0.125, allocations: 15.98 MB / 0.507 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.1375, allocations: 5.385 MB / 0.5122 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003578/0.1411, allocations: 107.6 kB / 0.5123 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1918/0.3329, allocations: 1.747 MB / 0.514 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00694/0.3399, allocations: 3.062 MB / 0.517 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.3417, allocations: 0.723 MB / 0.5177 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008085/0.3497, allocations: 6.771 MB / 0.5243 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005187/0.3549, allocations: 3.658 MB / 0.5279 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004049/0.359, allocations: 2.225 MB / 0.5301 GB, free: 6.785 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004983/0.364, allocations: 2.998 MB / 0.533 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001643/0.3656, allocations: 0.5411 MB / 0.5335 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003218/0.3688, allocations: 1.232 MB / 0.5347 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002875/0.3717, allocations: 2.739 MB / 0.5374 GB, free: 4.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004568/0.3763, allocations: 2.49 MB / 0.5398 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01441/0.3907, allocations: 11.41 MB / 0.551 GB, free: 11.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3907, allocations: 0 / 0.551 GB, free: 11.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3907, allocations: 1.75 kB / 0.551 GB, free: 11.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004023/0.3911, allocations: 4 kB / 0.551 GB, free: 11.25 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.03675/0.4278, allocations: 11.09 MB / 0.5618 GB, free: 2.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.4279, allocations: 8.031 kB / 0.5618 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003453/0.4313, allocations: 1.119 MB / 0.5629 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01486/0.4462, allocations: 3.584 MB / 0.5664 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01093/0.4571, allocations: 3.605 MB / 0.5699 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005753/0.4577, allocations: 331.4 kB / 0.5703 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002291/0.46, allocations: 454.5 kB / 0.5707 GB, free: 10 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04122/0.5012, allocations: 17.61 MB / 0.5879 GB, free: 7.418 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002971/0.5015, allocations: 71.41 kB / 0.588 GB, free: 7.348 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001509/0.503, allocations: 218.4 kB / 0.5882 GB, free: 7.199 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007444/0.5105, allocations: 3.717 MB / 0.5918 GB, free: 3.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03626/0.5467, allocations: 15.37 MB / 0.6068 GB, free: 4.117 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1154/0.6621, allocations: 68.73 MB / 0.6739 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02434/0.6864, allocations: 6.241 MB / 0.68 GB, free: 7.785 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007443/0.6939, allocations: 3.198 MB / 0.6831 GB, free: 4.574 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03009/0.724, allocations: 11.67 MB / 0.6945 GB, free: 8.973 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.122e-05/0.7241, allocations: 72.81 kB / 0.6946 GB, free: 8.891 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=373): time 8.426e-06/0.7241, allocations: 0 / 0.6946 GB, free: 8.891 MB / 0.5294 GB Notification: Performance of matching and sorting (n=420): time 0.3052/1.029, allocations: 25.69 MB / 0.7197 GB, free: 174.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/1.029, allocations: 199.6 kB / 0.7199 GB, free: 174.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/1.04, allocations: 6.93 MB / 0.7267 GB, free: 174.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005927/1.04, allocations: 84.45 kB / 0.7267 GB, free: 174.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003332/1.044, allocations: 4.975 MB / 0.7316 GB, free: 171 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001794/1.045, allocations: 1.617 MB / 0.7332 GB, free: 169.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004068/1.05, allocations: 2.15 MB / 0.7353 GB, free: 168.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.597e-05/1.05, allocations: 306.2 kB / 0.7356 GB, free: 168.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007262/1.057, allocations: 3.598 MB / 0.7391 GB, free: 167.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01154/1.068, allocations: 9.608 MB / 0.7485 GB, free: 158 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01687/1.085, allocations: 14.44 MB / 0.7626 GB, free: 146.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004148/1.086, allocations: 58.22 kB / 0.7626 GB, free: 146.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02545/1.111, allocations: 13.37 MB / 0.7757 GB, free: 140.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001799/1.111, allocations: 99.16 kB / 0.7758 GB, free: 140.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003562/1.112, allocations: 216.9 kB / 0.776 GB, free: 140.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/1.113, allocations: 0.6101 MB / 0.7766 GB, free: 140.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008223/1.121, allocations: 2.451 MB / 0.779 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005681/1.127, allocations: 4.923 MB / 0.7838 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00836/1.135, allocations: 490.2 kB / 0.7842 GB, free: 134.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001857/1.137, allocations: 0.6274 MB / 0.7849 GB, free: 133.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.006645/1.144, allocations: 3.512 MB / 0.7883 GB, free: 130.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001379/1.145, allocations: 0.6131 MB / 0.7889 GB, free: 130.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008166/1.153, allocations: 5.212 MB / 0.794 GB, free: 125.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.876e-05/1.153, allocations: 75.7 kB / 0.794 GB, free: 125.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/1.153, allocations: 4 kB / 0.7941 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.053e-05/1.153, allocations: 24.91 kB / 0.7941 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03108/1.184, allocations: 19.22 MB / 0.8128 GB, free: 106.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4e-05/1.184, allocations: 24 kB / 0.8129 GB, free: 106.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002934/1.187, allocations: 0.6766 MB / 0.8135 GB, free: 106 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008165/1.188, allocations: 346.1 kB / 0.8139 GB, free: 105.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004345/1.189, allocations: 108 kB / 0.814 GB, free: 105.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005084/1.194, allocations: 6.35 MB / 0.8202 GB, free: 98.87 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.566e-05/1.194, allocations: 41.45 kB / 0.8202 GB, free: 98.83 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/1.206, allocations: 9.772 MB / 0.8297 GB, free: 88.57 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003704/1.21, allocations: 1.077 MB / 0.8308 GB, free: 87.48 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001598/1.211, allocations: 107.3 kB / 0.8309 GB, free: 87.38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003409/1.215, allocations: 155.9 kB / 0.8311 GB, free: 87.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005768/1.215, allocations: 332.9 kB / 0.8314 GB, free: 86.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000255/1.215, allocations: 136 kB / 0.8315 GB, free: 86.77 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007025/1.222, allocations: 4.354 MB / 0.8357 GB, free: 82.43 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.222, allocations: 0 / 0.8357 GB, free: 82.43 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.011/1.233, allocations: 1.597 MB / 0.8373 GB, free: 80.83 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.01358/1.247, allocations: 10.52 MB / 0.8476 GB, free: 69.82 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01395/1.261, allocations: 8.448 MB / 0.8558 GB, free: 61.39 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.452e-05/1.261, allocations: 5.875 kB / 0.8558 GB, free: 61.39 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004546/1.266, allocations: 2.93 MB / 0.8587 GB, free: 58.42 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007604/1.273, allocations: 0.862 MB / 0.8595 GB, free: 57.61 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3734/1.647, allocations: 80.78 MB / 0.9384 GB, free: 186.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008153/1.655, allocations: 4.433 MB / 0.9428 GB, free: 186.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.009321/1.664, allocations: 3.225 MB / 0.9459 GB, free: 186.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005783/1.67, allocations: 3.177 MB / 0.949 GB, free: 186.3 MB / 0.5762 GB Notification: Performance of SimCode: time 2.013e-06/1.67, allocations: 0 / 0.949 GB, free: 186.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.172/1.842, allocations: 119.7 MB / 1.066 GB, free: 90.28 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.34/25.18, allocations: 7.297 kB / 1.066 GB, free: 90.27 MB / 0.5762 GB " [Timeout remaining time 635] (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: 28.16308967443183] Failed to read output from testmodel.py, exit status != 0: 25.38403221964836 25.404958692 25.009781471 Calling exit ...