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.001465/0.001465, allocations: 93.06 kB / 19.65 MB, free: 276 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.00182/0.00182, allocations: 165 kB / 23.02 MB, free: 1.551 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 0.9761/0.9761, allocations: 177.1 MB / 203.4 MB, free: 5.641 MB / 186.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.03584/0.03584, allocations: 7.178 MB / 267.1 MB, free: 6.066 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 2.214e-06/2.214e-06, allocations: 0 / 338.8 MB, free: 11.29 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.741e-05/2.963e-05, allocations: 4.828 kB / 338.9 MB, free: 11.29 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.008789/0.008819, allocations: 10.44 MB / 349.3 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005661/0.01448, allocations: 2.966 MB / 352.3 MB, free: 13.81 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009598/0.01544, allocations: 51.81 kB / 352.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008527/0.01629, allocations: 472.7 kB / 352.8 MB, free: 13.3 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002751/0.01904, allocations: 1.784 MB / 354.6 MB, free: 11.5 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.01937, allocations: 175.7 kB / 354.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002425/0.02179, allocations: 3.211 MB / 357.9 MB, free: 8.113 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009202/0.02271, allocations: 1.002 MB / 358.9 MB, free: 7.086 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001772/0.02449, allocations: 1.746 MB / 360.7 MB, free: 5.336 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001473/0.02596, allocations: 1.632 MB / 362.3 MB, free: 3.699 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003412/0.0263, allocations: 296 kB / 362.6 MB, free: 3.41 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.02743, allocations: 0.8855 MB / 363.5 MB, free: 2.523 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009673/0.0284, allocations: 1.593 MB / 365.1 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009093/0.02931, allocations: 1.043 MB / 366.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003907/0.03321, allocations: 4.003 MB / 370.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.03322, allocations: 0 / 370.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.03322, allocations: 0 / 370.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.664e-05/0.0333, allocations: 0 / 370.1 MB, free: 11.86 MB / 346.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.006774/0.04007, allocations: 4.958 MB / 375.1 MB, free: 6.836 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.04012, allocations: 12.61 kB / 375.1 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004407/0.04453, allocations: 2.428 MB / 377.5 MB, free: 4.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.04644, allocations: 1.476 MB / 379 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.04656, allocations: 197.2 kB / 379.2 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003518/0.04692, allocations: 264.1 kB / 379.5 MB, free: 2.426 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006257/0.05317, allocations: 5.057 MB / 384.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.351e-05/0.05324, allocations: 23.81 kB / 384.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002305/0.05347, allocations: 127.8 kB / 384.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002112/0.05558, allocations: 2.295 MB / 387 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006545/0.06212, allocations: 2.871 MB / 389.8 MB, free: 7.426 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02762/0.08975, allocations: 31.79 MB / 421.6 MB, free: 6.812 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003578/0.09333, allocations: 1.359 MB / 423 MB, free: 5.449 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007363/0.09406, allocations: 433.2 kB / 423.4 MB, free: 5.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005196/0.09926, allocations: 3.248 MB / 426.7 MB, free: 1.742 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.09929, allocations: 50.64 kB / 426.7 MB, free: 1.684 MB / 394.7 MB Notification: Performance of pre-optimization done (n=159): time 4.378e-06/0.0993, allocations: 0 / 426.7 MB, free: 1.684 MB / 394.7 MB Notification: Performance of matching and sorting (n=181): time 0.009032/0.1083, allocations: 5.123 MB / 431.8 MB, free: 12.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.1084, allocations: 72.66 kB / 431.9 MB, free: 12.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002528/0.1109, allocations: 2.402 MB / 434.3 MB, free: 10 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/0.111, allocations: 45.7 kB / 434.3 MB, free: 9.949 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.1125, allocations: 2.876 MB / 437.2 MB, free: 7.043 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004732/0.1129, allocations: 0.7133 MB / 437.9 MB, free: 6.324 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001136/0.1141, allocations: 1.069 MB / 439 MB, free: 5.242 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1142, allocations: 0.5199 MB / 439.5 MB, free: 4.715 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008823/0.1151, allocations: 0.525 MB / 440 MB, free: 4.184 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1567/0.2718, allocations: 4.64 MB / 444.7 MB, free: 122 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004491/0.2763, allocations: 5.702 MB / 450.4 MB, free: 116.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.403e-05/0.2764, allocations: 26.53 kB / 450.4 MB, free: 116.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=652) (initialization): time 0.005252/0.2816, allocations: 4.172 MB / 454.6 MB, free: 115.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.851e-05/0.2817, allocations: 45.22 kB / 454.6 MB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.723e-05/0.2817, allocations: 97.91 kB / 454.7 MB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006642/0.2824, allocations: 335.4 kB / 455.1 MB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/0.2842, allocations: 1.113 MB / 456.2 MB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/0.2864, allocations: 3.108 MB / 459.3 MB, free: 113.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/0.288, allocations: 244.7 kB / 459.5 MB, free: 113.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002415/0.2883, allocations: 298.5 kB / 459.8 MB, free: 113.6 MB / 410.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.001053/0.2893, allocations: 0.5509 MB / 460.4 MB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.2896, allocations: 290.2 kB / 460.6 MB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.2911, allocations: 1.235 MB / 461.9 MB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.873e-05/0.2912, allocations: 45.91 kB / 461.9 MB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2912, allocations: 3.125 kB / 461.9 MB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.2912, allocations: 13.38 kB / 461.9 MB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005803/0.297, allocations: 4.566 MB / 466.5 MB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.297, allocations: 6.344 kB / 466.5 MB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005474/0.2976, allocations: 251.6 kB / 466.8 MB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000434/0.298, allocations: 199.1 kB / 466.9 MB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.276e-05/0.2981, allocations: 44.31 kB / 467 MB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001419/0.2995, allocations: 2.436 MB / 469.4 MB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.2995, allocations: 13.38 kB / 469.4 MB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.3015, allocations: 1.843 MB / 471.3 MB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/0.3018, allocations: 221.9 kB / 471.5 MB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.302, allocations: 29.12 kB / 471.5 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004353/0.3024, allocations: 88.33 kB / 471.6 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.3025, allocations: 111.6 kB / 471.7 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.218e-05/0.3026, allocations: 54.77 kB / 471.8 MB, free: 109.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001018/0.3036, allocations: 1.033 MB / 472.8 MB, free: 109.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3036, allocations: 0 / 472.8 MB, free: 109.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00254/0.3062, allocations: 0.8338 MB / 473.6 MB, free: 109 MB / 410.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.0002734/0.3064, allocations: 166.8 kB / 473.8 MB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002945/0.3094, allocations: 2.461 MB / 476.3 MB, free: 108 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3094, allocations: 3 kB / 476.3 MB, free: 108 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000697/0.3101, allocations: 0.7388 MB / 477 MB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009175/0.311, allocations: 327.6 kB / 477.3 MB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008384/0.3194, allocations: 6.724 MB / 484.1 MB, free: 104.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008816/0.3203, allocations: 1.111 MB / 485.2 MB, free: 103.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001738/0.322, allocations: 1.19 MB / 486.4 MB, free: 103.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000327/0.3223, allocations: 185.5 kB / 486.5 MB, free: 103.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.743e-06/0.3223, allocations: 4 kB / 486.5 MB, free: 103.6 MB / 410.7 MB Notification: Performance of Templates: time 0.03168/0.354, allocations: 20.67 MB / 0.4953 GB, free: 92.61 MB / 410.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: 3.968241661321372]