Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.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.001407/0.001407, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001755/0.001755, allocations: 220.1 kB / 22.26 MB, free: 5.117 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.551/1.551, allocations: 230.6 MB / 256 MB, free: 8.02 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.05192/0.05192, allocations: 9.232 MB / 321.7 MB, free: 10.04 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: translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") [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.002387/0.002387, allocations: 68.17 kB / 448.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1377, allocations: 55.49 MB / 0.4919 GB, free: 6.977 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01697/0.1547, allocations: 12.97 MB / 0.5046 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.1657, allocations: 3.625 MB / 0.5081 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003662/0.1694, allocations: 67.75 kB / 0.5082 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00381/0.1732, allocations: 0.8001 MB / 0.509 GB, free: 5.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007791/0.181, allocations: 2.077 MB / 0.511 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001129/0.1821, allocations: 139.8 kB / 0.5111 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2765/0.4586, allocations: 4.052 MB / 0.5151 GB, free: 8.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003087/0.4617, allocations: 2.052 MB / 0.5171 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002355/0.4641, allocations: 1.435 MB / 0.5185 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003337/0.4674, allocations: 2.21 MB / 0.5206 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007884/0.4682, allocations: 318.9 kB / 0.521 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002233/0.4704, allocations: 0.9294 MB / 0.5219 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002395/0.4728, allocations: 1.915 MB / 0.5237 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00328/0.4761, allocations: 2.427 MB / 0.5261 GB, free: 7.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01193/0.488, allocations: 7.62 MB / 0.5335 GB, free: 5.262 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.488, allocations: 1.344 kB / 0.5335 GB, free: 5.262 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.488, allocations: 0 / 0.5335 GB, free: 5.262 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003852/0.4884, allocations: 0 / 0.5335 GB, free: 5.262 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: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.03212/0.5205, allocations: 7.181 MB / 0.5406 GB, free: 1.434 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.5206, allocations: 13.55 kB / 0.5406 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01297/0.5336, allocations: 3.287 MB / 0.5438 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007979/0.5415, allocations: 2.012 MB / 0.5457 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004733/0.542, allocations: 234.3 kB / 0.546 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002759/0.5448, allocations: 319.6 kB / 0.5463 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03412/0.5789, allocations: 13.44 MB / 0.5594 GB, free: 4.703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003051/0.5792, allocations: 54.66 kB / 0.5594 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00215/0.5813, allocations: 155.4 kB / 0.5596 GB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006269/0.5876, allocations: 3.092 MB / 0.5626 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03169/0.6193, allocations: 11.94 MB / 0.5743 GB, free: 5.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08847/0.7078, allocations: 47.76 MB / 0.6209 GB, free: 5.461 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01293/0.7207, allocations: 2.755 MB / 0.6236 GB, free: 2.688 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003227/0.7239, allocations: 1.297 MB / 0.6249 GB, free: 1.383 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02005/0.744, allocations: 6.355 MB / 0.6311 GB, free: 11.07 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.456e-05/0.7441, allocations: 55.5 kB / 0.6311 GB, free: 11.01 MB / 478.1 MB Notification: Performance of pre-optimization done (n=202): time 8.376e-06/0.7441, allocations: 0 / 0.6311 GB, free: 11.01 MB / 478.1 MB Notification: Performance of matching and sorting (n=211): time 0.02929/0.7734, allocations: 10.36 MB / 0.6412 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.7735, allocations: 149.8 kB / 0.6414 GB, free: 448 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0136/0.7871, allocations: 5.155 MB / 0.6464 GB, free: 11.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004618/0.7875, allocations: 49.7 kB / 0.6465 GB, free: 11.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004793/0.7923, allocations: 4.1 MB / 0.6505 GB, free: 7.152 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001614/0.7939, allocations: 0.8659 MB / 0.6513 GB, free: 6.297 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007208/0.8012, allocations: 1.611 MB / 0.6529 GB, free: 4.68 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.8014, allocations: 305.1 kB / 0.6532 GB, free: 4.379 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008127/0.8095, allocations: 2.248 MB / 0.6554 GB, free: 2.129 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01664/0.8261, allocations: 7.321 MB / 0.6625 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02334/0.8495, allocations: 10.39 MB / 0.6727 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004012/0.8499, allocations: 52.88 kB / 0.6727 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.0298/0.8797, allocations: 9.212 MB / 0.6817 GB, free: 2.195 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003243/0.88, allocations: 87.98 kB / 0.6818 GB, free: 2.109 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004739/0.8804, allocations: 180 kB / 0.682 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004523/0.8809, allocations: 236 kB / 0.6822 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00735/0.8883, allocations: 1.849 MB / 0.684 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005345/0.8888, allocations: 354.5 kB / 0.6843 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007746/0.8965, allocations: 371.7 kB / 0.6847 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002317/0.8988, allocations: 0.4993 MB / 0.6852 GB, free: 14.64 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (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],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (994): * Single equations (assignments): 987 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008878/0.9077, allocations: 2.654 MB / 0.6878 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001687/0.9094, allocations: 441 kB / 0.6882 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006086/0.9155, allocations: 1.962 MB / 0.6901 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000149/0.9156, allocations: 32.73 kB / 0.6901 GB, free: 9.543 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.737e-05/0.9157, allocations: 8 kB / 0.6902 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.164e-05/0.9157, allocations: 7.969 kB / 0.6902 GB, free: 9.527 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/0.9393, allocations: 7.707 MB / 0.6977 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-05/0.9394, allocations: 16 kB / 0.6977 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001395/0.9408, allocations: 299.5 kB / 0.698 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002063/0.941, allocations: 45.5 kB / 0.698 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002758/0.9412, allocations: 47.98 kB / 0.6981 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.9426, allocations: 1.303 MB / 0.6993 GB, free: 15.81 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.647e-05/0.9426, allocations: 19.88 kB / 0.6994 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007985/0.9506, allocations: 4.41 MB / 0.7037 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002512/0.9531, allocations: 0.6218 MB / 0.7043 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001418/0.9545, allocations: 43.98 kB / 0.7043 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002373/0.9569, allocations: 67.95 kB / 0.7044 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003429/0.9572, allocations: 162.3 kB / 0.7045 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001873/0.9574, allocations: 87.09 kB / 0.7046 GB, free: 10.22 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008918/0.9663, allocations: 3.202 MB / 0.7078 GB, free: 7.023 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.2e-07/0.9663, allocations: 0 / 0.7078 GB, free: 7.023 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01003/0.9764, allocations: 1.074 MB / 0.7088 GB, free: 5.949 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 59 * Number of states: 2 (constantSpeed.phi,gearB.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 (163): * Single equations (assignments): 155 * Array equations: 7 * 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 {(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.000942/0.9773, allocations: 188.8 kB / 0.709 GB, free: 5.762 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01227/0.9896, allocations: 5.006 MB / 0.7139 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.459e-05/0.9896, allocations: 0 / 0.7139 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002718/0.9923, allocations: 1.163 MB / 0.715 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006626/0.9989, allocations: 0.5611 MB / 0.7156 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03226/1.031, allocations: 10.57 MB / 0.7259 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01071/1.042, allocations: 3.767 MB / 0.7296 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.33/1.372, allocations: 2.445 MB / 0.7319 GB, free: 188.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/1.373, allocations: 311.7 kB / 0.7322 GB, free: 188.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.913e-06/1.373, allocations: 1.469 kB / 0.7322 GB, free: 188.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.07675/1.45, allocations: 34.63 MB / 0.7661 GB, free: 177.5 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.sim & ./PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.7731471210718155] Failed to read output from testmodel.py, exit status != 0: 1.4599918038584292 1.47058936 0.979977478 Calling exit ...