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.001792/0.001792, allocations: 88.05 kB / 19.44 MB, free: 320 kB / 13.93 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.002027/0.002027, allocations: 173.3 kB / 22.77 MB, free: 1.641 MB / 18.57 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.611/1.611, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.0653/0.0653, allocations: 7.175 MB / 266.7 MB, free: 6.09 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.683e-06/1.683e-06, allocations: 3.938 kB / 338.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.74e-05/2.909e-05, allocations: 2.312 kB / 338.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.008657/0.008686, allocations: 10.37 MB / 348.5 MB, free: 136 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007522/0.01621, allocations: 2.951 MB / 351.5 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00172/0.01793, allocations: 47.81 kB / 351.5 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.01926, allocations: 476.7 kB / 352 MB, free: 12.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005214/0.02448, allocations: 1.784 MB / 353.8 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005986/0.02508, allocations: 175.7 kB / 353.9 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005066/0.03014, allocations: 3.206 MB / 357.1 MB, free: 7.477 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00217/0.03231, allocations: 1.009 MB / 358.1 MB, free: 6.441 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003071/0.03538, allocations: 1.746 MB / 359.9 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.0381, allocations: 1.624 MB / 361.5 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000613/0.03871, allocations: 296 kB / 361.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001979/0.04069, allocations: 0.8932 MB / 362.7 MB, free: 1.879 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001973/0.04267, allocations: 1.577 MB / 364.3 MB, free: 304 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00222/0.04489, allocations: 1.047 MB / 365.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.05497, allocations: 6.085 MB / 371.4 MB, free: 9.141 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.05497, allocations: 3.938 kB / 371.4 MB, free: 9.137 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.05498, allocations: 0 / 371.4 MB, free: 9.137 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001935/0.05517, allocations: 0 / 371.4 MB, free: 9.137 MB / 298.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.01476/0.06993, allocations: 5.47 MB / 376.9 MB, free: 3.602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.06998, allocations: 8.625 kB / 376.9 MB, free: 3.594 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008927/0.0789, allocations: 2.424 MB / 379.3 MB, free: 1.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/0.08284, allocations: 1.488 MB / 380.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002089/0.08305, allocations: 197.2 kB / 381 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006133/0.08366, allocations: 256.2 kB / 381.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01393/0.09759, allocations: 5.721 MB / 387 MB, free: 8.859 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001054/0.0977, allocations: 23.81 kB / 387 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003716/0.09807, allocations: 119.8 kB / 387.1 MB, free: 8.719 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00427/0.1023, allocations: 2.299 MB / 389.4 MB, free: 6.418 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01279/0.1151, allocations: 3.523 MB / 392.9 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1781/0.2932, allocations: 44.81 MB / 437.7 MB, free: 46.26 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004788/0.298, allocations: 1.515 MB / 439.2 MB, free: 46.13 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.2991, allocations: 0.5302 MB / 439.8 MB, free: 45.99 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007644/0.3068, allocations: 3.437 MB / 443.2 MB, free: 44.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.3068, allocations: 53.3 kB / 443.3 MB, free: 44.65 MB / 330.7 MB Notification: Performance of pre-optimization done (n=159): time 3.617e-06/0.3068, allocations: 0 / 443.3 MB, free: 44.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=181): time 0.0138/0.3206, allocations: 5.554 MB / 448.8 MB, free: 42.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.3206, allocations: 67.22 kB / 448.9 MB, free: 42.44 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003634/0.3243, allocations: 3.209 MB / 452.1 MB, free: 40.01 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.552e-05/0.3244, allocations: 49.7 kB / 452.1 MB, free: 39.96 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001172/0.3255, allocations: 3.038 MB / 455.2 MB, free: 36.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004482/0.326, allocations: 0.77 MB / 456 MB, free: 36.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/0.3274, allocations: 1.299 MB / 457.3 MB, free: 34.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3275, allocations: 0.5434 MB / 457.8 MB, free: 34.37 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/0.3289, allocations: 0.6734 MB / 458.5 MB, free: 33.69 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002808/0.3317, allocations: 4.974 MB / 463.4 MB, free: 26.83 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004863/0.3366, allocations: 6.167 MB / 469.6 MB, free: 18.81 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.083e-05/0.3366, allocations: 28 kB / 469.6 MB, free: 18.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=652) (initialization): time 0.006974/0.3436, allocations: 4.461 MB / 474.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.799e-05/0.3437, allocations: 48 kB / 474.1 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-05/0.3437, allocations: 96 kB / 474.2 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009082/0.3446, allocations: 349.8 kB / 474.6 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002946/0.3476, allocations: 1.107 MB / 475.7 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00311/0.3507, allocations: 3.305 MB / 479 MB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00324/0.3539, allocations: 255.9 kB / 479.2 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005251/0.3545, allocations: 296 kB / 479.5 MB, free: 8.766 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * 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 (607): * Single equations (assignments): 601 * Array equations: 5 * 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.001586/0.356, allocations: 0.6721 MB / 480.2 MB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004311/0.3565, allocations: 293.7 kB / 480.5 MB, free: 7.797 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002691/0.3592, allocations: 1.375 MB / 481.9 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001673/0.3593, allocations: 39.97 kB / 481.9 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3593, allocations: 7.938 kB / 481.9 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.3594, allocations: 7.969 kB / 481.9 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009985/0.3693, allocations: 5.912 MB / 487.8 MB, free: 376 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.3693, allocations: 4 kB / 487.8 MB, free: 372 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009478/0.3703, allocations: 260.1 kB / 488.1 MB, free: 112 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008094/0.3711, allocations: 207.4 kB / 488.3 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.3712, allocations: 43.92 kB / 488.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003367/0.3746, allocations: 2.56 MB / 490.9 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/0.3746, allocations: 11.88 kB / 490.9 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00495/0.3795, allocations: 2.127 MB / 493 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007526/0.3803, allocations: 222.3 kB / 493.3 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002912/0.3806, allocations: 31.56 kB / 493.3 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009329/0.3815, allocations: 91.42 kB / 493.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/0.3818, allocations: 113 kB / 493.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.3819, allocations: 55.98 kB / 493.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002437/0.3843, allocations: 1.32 MB / 494.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3843, allocations: 0 / 494.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003966/0.3883, allocations: 0.8242 MB / 495.7 MB, free: 8.301 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 (142): * Single equations (assignments): 136 * Array equations: 5 * 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.0004472/0.3887, allocations: 170.7 kB / 495.8 MB, free: 8.125 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006709/0.3955, allocations: 2.875 MB / 498.7 MB, free: 5.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/0.3955, allocations: 0 / 498.7 MB, free: 5.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002226/0.3977, allocations: 0.8735 MB / 499.6 MB, free: 4.363 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002041/0.3997, allocations: 324.4 kB / 499.9 MB, free: 4.062 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0148/0.4145, allocations: 6.867 MB / 0.4949 GB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003793/0.4183, allocations: 2.245 MB / 0.4971 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003367/0.4217, allocations: 1.186 MB / 0.4983 GB, free: 9.613 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005491/0.4222, allocations: 196.5 kB / 0.4984 GB, free: 9.422 MB / 362.7 MB Notification: Performance of SimCode: time 2.225e-06/0.4222, allocations: 0 / 0.4984 GB, free: 9.422 MB / 362.7 MB Notification: Performance of Templates: time 0.05362/0.4759, allocations: 20.64 MB / 0.5186 GB, free: 5.184 MB / 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: 6.186849691090174]