Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.00102/0.00102, 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.001154/0.001154, allocations: 169 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.9697/0.9697, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.02881/0.02881, allocations: 7.184 MB / 267.1 MB, free: 6.051 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.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 338.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.573e-05/2.749e-05, allocations: 2.312 kB / 338.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.008794/0.008821, allocations: 13.31 MB / 352.2 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007559/0.01638, allocations: 4.046 MB / 356.2 MB, free: 8.773 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002013/0.01839, allocations: 63.75 kB / 356.3 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009745/0.01937, allocations: 404.6 kB / 356.7 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002117/0.02149, allocations: 0.9666 MB / 357.6 MB, free: 7.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.02277, allocations: 0.9825 MB / 358.6 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.02476, allocations: 2.279 MB / 360.9 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001783/0.02655, allocations: 2.065 MB / 363 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.02786, allocations: 1.61 MB / 364.6 MB, free: 320 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001075/0.02894, allocations: 1.095 MB / 365.7 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002826/0.02922, allocations: 312 kB / 366 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008618/0.03008, allocations: 0.7296 MB / 366.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005714/0.03065, allocations: 1.009 MB / 367.7 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006991/0.03135, allocations: 0.9781 MB / 368.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002044/0.03339, allocations: 2.569 MB / 371.3 MB, free: 9.609 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.0334, allocations: 0 / 371.3 MB, free: 9.609 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.0334, allocations: 4 kB / 371.3 MB, free: 9.605 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.03342, allocations: 4 kB / 371.3 MB, free: 9.602 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.006058/0.03948, allocations: 4.37 MB / 375.6 MB, free: 5.172 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.03954, allocations: 8.625 kB / 375.7 MB, free: 5.164 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006721/0.04021, allocations: 0.5419 MB / 376.2 MB, free: 4.621 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.04153, allocations: 1.045 MB / 377.2 MB, free: 3.543 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.04166, allocations: 210 kB / 377.4 MB, free: 3.336 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003016/0.04196, allocations: 296.3 kB / 377.7 MB, free: 3.047 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004062/0.04602, allocations: 3.682 MB / 381.4 MB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.718e-05/0.04609, allocations: 51.64 kB / 381.5 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/0.04625, allocations: 128 kB / 381.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003364/0.04659, allocations: 428.2 kB / 382 MB, free: 14.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002833/0.04942, allocations: 1.707 MB / 383.7 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01516/0.06458, allocations: 25.62 MB / 409.3 MB, free: 1.918 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002735/0.06732, allocations: 1.05 MB / 410.4 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004896/0.06781, allocations: 346.1 kB / 410.7 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1497/0.2175, allocations: 2.752 MB / 413.5 MB, free: 75.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.2175, allocations: 43.66 kB / 413.5 MB, free: 75.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=102): time 3.707e-06/0.2175, allocations: 3 kB / 413.5 MB, free: 75.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=140): time 0.01228/0.2298, allocations: 6.552 MB / 420.1 MB, free: 74.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.2298, allocations: 70.33 kB / 420.1 MB, free: 74.33 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/0.2312, allocations: 1.666 MB / 421.8 MB, free: 73.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.421e-05/0.2313, allocations: 47.92 kB / 421.9 MB, free: 73.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006072/0.2319, allocations: 1.875 MB / 423.7 MB, free: 72.64 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002793/0.2322, allocations: 0.558 MB / 424.3 MB, free: 72.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005476/0.2327, allocations: 0.7678 MB / 425.1 MB, free: 71.81 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.707e-05/0.2328, allocations: 0.5176 MB / 425.6 MB, free: 71.31 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006848/0.2335, allocations: 0.5118 MB / 426.1 MB, free: 71.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.2351, allocations: 3.724 MB / 429.8 MB, free: 66.85 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002874/0.2379, allocations: 4.73 MB / 434.5 MB, free: 60.97 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.187e-05/0.2379, allocations: 20 kB / 434.6 MB, free: 60.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.00356/0.2415, allocations: 3.536 MB / 438.1 MB, free: 57.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.2415, allocations: 42.8 kB / 438.1 MB, free: 57.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.577e-05/0.2416, allocations: 80 kB / 438.2 MB, free: 57.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005508/0.2421, allocations: 293.9 kB / 438.5 MB, free: 57.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.2436, allocations: 0.8967 MB / 439.4 MB, free: 56.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002548/0.2462, allocations: 3.338 MB / 442.7 MB, free: 53.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.2475, allocations: 215.8 kB / 442.9 MB, free: 52.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000165/0.2477, allocations: 227.9 kB / 443.2 MB, free: 52.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (464): * Single equations (assignments): 463 * Array equations: 0 * 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,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006327/0.2483, allocations: 472.6 kB / 443.6 MB, free: 52.1 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001831/0.2485, allocations: 234.7 kB / 443.9 MB, free: 51.87 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.2501, allocations: 1.41 MB / 445.3 MB, free: 50.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.2501, allocations: 16 kB / 445.3 MB, free: 50.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.2501, allocations: 7.938 kB / 445.3 MB, free: 50.42 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.2501, allocations: 7.969 kB / 445.3 MB, free: 50.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004668/0.2548, allocations: 4.211 MB / 449.5 MB, free: 46.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.2548, allocations: 4 kB / 449.5 MB, free: 46.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005534/0.2553, allocations: 271.6 kB / 449.8 MB, free: 45.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003663/0.2557, allocations: 185.3 kB / 450 MB, free: 45.67 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.043e-05/0.2558, allocations: 24 kB / 450 MB, free: 45.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/0.2574, allocations: 2.628 MB / 452.6 MB, free: 42.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.2574, allocations: 7.938 kB / 452.6 MB, free: 42.9 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.2592, allocations: 1.972 MB / 454.6 MB, free: 40.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.2594, allocations: 154.8 kB / 454.7 MB, free: 40.68 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.2595, allocations: 27.98 kB / 454.8 MB, free: 40.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/0.2598, allocations: 103.8 kB / 454.9 MB, free: 40.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.26, allocations: 100.7 kB / 455 MB, free: 40.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.26, allocations: 43.98 kB / 455 MB, free: 40.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005978/0.2606, allocations: 0.7447 MB / 455.8 MB, free: 39.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2606, allocations: 0 / 455.8 MB, free: 39.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001554/0.2622, allocations: 0.6289 MB / 456.4 MB, free: 39.05 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (121): * Single equations (assignments): 120 * Array equations: 0 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001924/0.2624, allocations: 143 kB / 456.5 MB, free: 38.9 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002437/0.2648, allocations: 2.22 MB / 458.7 MB, free: 36.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2648, allocations: 0 / 458.7 MB, free: 36.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006672/0.2655, allocations: 0.8133 MB / 459.6 MB, free: 35.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009621/0.2664, allocations: 415.7 kB / 460 MB, free: 35.47 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004706/0.2711, allocations: 4.274 MB / 464.2 MB, free: 31.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.2715, allocations: 0.5587 MB / 464.8 MB, free: 30.5 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001061/0.2726, allocations: 0.7052 MB / 465.5 MB, free: 29.8 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003357/0.2729, allocations: 148.5 kB / 465.6 MB, free: 29.65 MB / 330.7 MB Notification: Performance of SimCode: time 2.374e-06/0.2729, allocations: 0 / 465.6 MB, free: 29.65 MB / 330.7 MB Notification: Performance of Templates: time 0.02798/0.3009, allocations: 26.08 MB / 491.7 MB, free: 3.809 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.MeasureDemo -abortSlowSimulation -alarm=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6355343628674746]