Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.0006452/0.0006452, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008638/0.001509, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006736/0.0006736, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008657/0.001539, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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 0.9238/0.9238, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08802/1.012, allocations: 53.68 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.02789/0.02789, allocations: 7.172 MB / 251.3 MB, free: 7.773 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003771/0.03166, allocations: 2.561 MB / 253.9 MB, free: 5.207 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.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.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 255.2 MB, free: 3.918 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.715e-06/8.847e-06, allocations: 2.312 kB / 255.2 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.007763/0.007772, allocations: 10.36 MB / 265.5 MB, free: 9.508 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004282/0.01205, allocations: 3.076 MB / 268.6 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005097/0.01256, allocations: 51.81 kB / 268.7 MB, free: 6.371 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005614/0.01313, allocations: 0.4889 MB / 269.1 MB, free: 5.879 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001915/0.01504, allocations: 1.765 MB / 270.9 MB, free: 4.105 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.01528, allocations: 171.6 kB / 271.1 MB, free: 3.938 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002073/0.01735, allocations: 3.207 MB / 274.3 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1122/0.1295, allocations: 1.019 MB / 275.3 MB, free: 2.473 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002403/0.1319, allocations: 1.812 MB / 277.1 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002013/0.1339, allocations: 1.552 MB / 278.7 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005694/0.1345, allocations: 297.4 kB / 279 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001534/0.136, allocations: 0.9026 MB / 279.9 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001057/0.1371, allocations: 1.413 MB / 281.3 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001005/0.1381, allocations: 0.8706 MB / 282.1 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003082/0.1412, allocations: 3.748 MB / 285.9 MB, free: 1.637 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.637e-06/0.1412, allocations: 0 / 285.9 MB, free: 1.637 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.1412, allocations: 0 / 285.9 MB, free: 1.637 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.845e-05/0.1413, allocations: 0 / 285.9 MB, free: 1.637 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.004694/0.146, allocations: 4.905 MB / 290.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.599e-05/0.146, allocations: 8.797 kB / 290.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002714/0.1487, allocations: 1.162 MB / 292 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.15, allocations: 1.171 MB / 293.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.191e-05/0.1501, allocations: 195.7 kB / 293.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002953/0.1504, allocations: 257.4 kB / 293.6 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003844/0.1542, allocations: 4.261 MB / 297.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.221e-05/0.1543, allocations: 29.47 kB / 297.9 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002302/0.1545, allocations: 129.8 kB / 298 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001972/0.1565, allocations: 1.972 MB / 300 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00404/0.1605, allocations: 2.353 MB / 302.3 MB, free: 8.695 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01854/0.1791, allocations: 22.96 MB / 325.3 MB, free: 2.191 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002668/0.1817, allocations: 1.275 MB / 326.6 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004192/0.1822, allocations: 326.1 kB / 326.9 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00375/0.1859, allocations: 2.798 MB / 329.7 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.1859, allocations: 55.16 kB / 329.7 MB, free: 13.85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=159): time 3.417e-06/0.1859, allocations: 1.75 kB / 329.7 MB, free: 13.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=181): time 0.007242/0.1932, allocations: 4.443 MB / 334.2 MB, free: 9.453 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.1932, allocations: 68.72 kB / 334.2 MB, free: 9.375 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001569/0.1948, allocations: 2.164 MB / 336.4 MB, free: 7.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.296e-05/0.1949, allocations: 45.7 kB / 336.4 MB, free: 7.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.1961, allocations: 2.685 MB / 339.1 MB, free: 4.934 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/0.1964, allocations: 0.7041 MB / 339.8 MB, free: 4.266 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007548/0.1972, allocations: 0.9509 MB / 340.8 MB, free: 3.414 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.96e-05/0.1973, allocations: 347 kB / 341.1 MB, free: 3.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000622/0.1979, allocations: 0.5114 MB / 341.6 MB, free: 2.574 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001974/0.1998, allocations: 3.218 MB / 344.9 MB, free: 14.15 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003571/0.2034, allocations: 4.712 MB / 349.6 MB, free: 8.223 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-05/0.2034, allocations: 28 kB / 349.6 MB, free: 8.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=654) (initialization): time 0.003354/0.2068, allocations: 3.316 MB / 352.9 MB, free: 4.848 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.265e-05/0.2068, allocations: 48 kB / 353 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.802e-05/0.2069, allocations: 110.5 kB / 353.1 MB, free: 4.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005011/0.2074, allocations: 300.4 kB / 353.4 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/0.2094, allocations: 1.228 MB / 354.6 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.2115, allocations: 2.365 MB / 357 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.213, allocations: 203.9 kB / 357.2 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002394/0.2133, allocations: 256 kB / 357.4 MB, free: 296 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 448 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (610): * Single equations (assignments): 605 * Array equations: 4 * 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 {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001319/0.2146, allocations: 0.5079 MB / 357.9 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001901/0.2148, allocations: 172.9 kB / 358.1 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.2159, allocations: 0.9436 MB / 359 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.304e-05/0.216, allocations: 27.98 kB / 359 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.216, allocations: 3.938 kB / 359.1 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.216, allocations: 7.969 kB / 359.1 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004244/0.2202, allocations: 3.603 MB / 362.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/0.2202, allocations: 8 kB / 362.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005977/0.2208, allocations: 279.6 kB / 362.9 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.221, allocations: 202.4 kB / 363.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00046/0.2215, allocations: 264.5 kB / 363.4 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.273e-05/0.2216, allocations: 43.92 kB / 363.4 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001432/0.223, allocations: 1.734 MB / 365.2 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.223, allocations: 7.984 kB / 365.2 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001375/0.2244, allocations: 1.398 MB / 366.6 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.2245, allocations: 36 kB / 366.6 MB, free: 7.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.2249, allocations: 35.98 kB / 366.7 MB, free: 7.074 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.225, allocations: 113 kB / 366.8 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.874e-05/0.2251, allocations: 43.98 kB / 366.8 MB, free: 6.922 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006509/0.2257, allocations: 0.7694 MB / 367.6 MB, free: 6.133 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2257, allocations: 0 / 367.6 MB, free: 6.133 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00222/0.228, allocations: 0.8242 MB / 368.4 MB, free: 5.309 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 138 * Array equations: 4 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002587/0.2282, allocations: 152 kB / 368.5 MB, free: 5.152 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.2304, allocations: 2.204 MB / 370.8 MB, free: 2.965 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001248/0.2305, allocations: 70.55 kB / 370.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009276/0.2314, allocations: 0.6847 MB / 371.5 MB, free: 2.188 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.2329, allocations: 2.101 MB / 373.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.2432, allocations: 6.927 MB / 380.5 MB, free: 8.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009082/0.2441, allocations: 1.092 MB / 381.6 MB, free: 7.633 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008132/0.2449, allocations: 372.3 kB / 382 MB, free: 7.266 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005358/0.2454, allocations: 421.2 kB / 382.4 MB, free: 6.852 MB / 362.7 MB Notification: Performance of SimCode: time 7.31e-07/0.2454, allocations: 0 / 382.4 MB, free: 6.852 MB / 362.7 MB Notification: Performance of Templates: time 0.03462/0.2801, allocations: 22.96 MB / 405.4 MB, free: 96 kB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo -abortSlowSimulation -alarm=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8990503679960966]