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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 105.7 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 191.7 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04719/0.04719, allocations: 9.126 MB / 300.2 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 67.89 kB / 362.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1917, allocations: 51.41 MB / 414 MB, free: 25.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.009835/0.2016, allocations: 13.8 MB / 427.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006717/0.2084, allocations: 4.022 MB / 431.9 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002324/0.2107, allocations: 55.88 kB / 431.9 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008842/0.2116, allocations: 396.7 kB / 432.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002003/0.2137, allocations: 0.9049 MB / 433.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.215, allocations: 0.9637 MB / 434.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001722/0.2167, allocations: 2.223 MB / 436.4 MB, free: 2.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002274/0.219, allocations: 2.756 MB / 439.1 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00115/0.2202, allocations: 1.016 MB / 440.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.2215, allocations: 1.237 MB / 441.4 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003857/0.2219, allocations: 312 kB / 441.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.223, allocations: 0.7063 MB / 442.4 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007854/0.2238, allocations: 0.9701 MB / 443.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001334/0.2251, allocations: 1.485 MB / 444.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003339/0.2285, allocations: 3.782 MB / 448.6 MB, free: 6.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2285, allocations: 3.938 kB / 448.6 MB, free: 6.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2285, allocations: 4 kB / 448.6 MB, free: 6.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.06e-05/0.2285, allocations: 0 / 448.6 MB, free: 6.227 MB / 318.1 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.009511/0.2381, allocations: 4.152 MB / 452.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.2381, allocations: 12.03 kB / 452.8 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005304/0.2387, allocations: 297.2 kB / 453.1 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001628/0.2403, allocations: 1.127 MB / 454.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.2404, allocations: 214 kB / 454.4 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003703/0.2408, allocations: 299.7 kB / 454.7 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00754/0.2484, allocations: 4.74 MB / 459.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.336e-05/0.2485, allocations: 35.72 kB / 459.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002531/0.2488, allocations: 132 kB / 459.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005053/0.2493, allocations: 428.2 kB / 460.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006677/0.256, allocations: 3.377 MB / 463.4 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0211/0.2771, allocations: 21.62 MB / 485.1 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005088/0.2822, allocations: 1.925 MB / 487 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.2833, allocations: 0.7049 MB / 487.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006729/0.2901, allocations: 5.541 MB / 493.2 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.2901, allocations: 43.56 kB / 493.3 MB, free: 7.648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 4.609e-06/0.2901, allocations: 7.938 kB / 493.3 MB, free: 7.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02303/0.3132, allocations: 9.561 MB / 0.4911 GB, free: 13.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.3133, allocations: 68.66 kB / 0.4911 GB, free: 13.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002378/0.3156, allocations: 1.814 MB / 0.4929 GB, free: 12.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.3158, allocations: 45.7 kB / 0.4929 GB, free: 12.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009992/0.3168, allocations: 1.732 MB / 0.4946 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000438/0.3172, allocations: 0.5205 MB / 0.4951 GB, free: 9.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009111/0.3181, allocations: 0.7424 MB / 0.4959 GB, free: 8.988 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.3183, allocations: 365.9 kB / 0.4962 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001819/0.3201, allocations: 1.222 MB / 0.4974 GB, free: 7.402 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003042/0.3232, allocations: 3.41 MB / 0.5007 GB, free: 2.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1633/0.4865, allocations: 5.118 MB / 0.5057 GB, free: 85.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.839e-05/0.4865, allocations: 22.25 kB / 0.5057 GB, free: 85.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007505/0.4941, allocations: 4.812 MB / 0.5104 GB, free: 84.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.076e-05/0.4941, allocations: 35.41 kB / 0.5105 GB, free: 84.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.851e-05/0.4942, allocations: 79.56 kB / 0.5106 GB, free: 84.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009331/0.4952, allocations: 376.3 kB / 0.5109 GB, free: 84.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003102/0.4983, allocations: 0.8932 MB / 0.5118 GB, free: 84.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004633/0.5029, allocations: 4.298 MB / 0.516 GB, free: 81.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/0.5053, allocations: 208 kB / 0.5162 GB, free: 81.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000297/0.5056, allocations: 235.2 kB / 0.5164 GB, free: 81.47 MB / 382.1 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.001218/0.5068, allocations: 0.9279 MB / 0.5173 GB, free: 80.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002434/0.5071, allocations: 192.3 kB / 0.5175 GB, free: 80.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003546/0.5106, allocations: 2.595 MB / 0.52 GB, free: 79.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.5107, allocations: 28.3 kB / 0.5201 GB, free: 79.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.5107, allocations: 3.938 kB / 0.5201 GB, free: 79.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.5107, allocations: 7.312 kB / 0.5201 GB, free: 79.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009312/0.52, allocations: 6.474 MB / 0.5264 GB, free: 74.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.5201, allocations: 4.469 kB / 0.5264 GB, free: 74.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009975/0.5211, allocations: 271.6 kB / 0.5267 GB, free: 74.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005999/0.5217, allocations: 262.3 kB / 0.5269 GB, free: 74.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.267e-05/0.5218, allocations: 32 kB / 0.5269 GB, free: 74.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003069/0.5249, allocations: 3.453 MB / 0.5303 GB, free: 70.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.5249, allocations: 7.984 kB / 0.5303 GB, free: 70.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004042/0.5289, allocations: 3.91 MB / 0.5341 GB, free: 66.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004421/0.5294, allocations: 242.7 kB / 0.5344 GB, free: 66.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.5297, allocations: 28 kB / 0.5344 GB, free: 66.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008337/0.5305, allocations: 103.8 kB / 0.5345 GB, free: 66.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.5307, allocations: 100.8 kB / 0.5346 GB, free: 66.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.031e-05/0.5308, allocations: 36 kB / 0.5346 GB, free: 66.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001252/0.532, allocations: 1.088 MB / 0.5357 GB, free: 64.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5321, allocations: 0 / 0.5357 GB, free: 64.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002509/0.5346, allocations: 0.6328 MB / 0.5363 GB, free: 64.33 MB / 382.1 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.0002283/0.5348, allocations: 145.4 kB / 0.5364 GB, free: 64.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005758/0.5406, allocations: 4.307 MB / 0.5406 GB, free: 59.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.5406, allocations: 3.938 kB / 0.5406 GB, free: 59.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001375/0.542, allocations: 1.27 MB / 0.5419 GB, free: 58.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.5439, allocations: 439.2 kB / 0.5423 GB, free: 58.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00658/0.5505, allocations: 5.197 MB / 0.5474 GB, free: 52.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001115/0.5517, allocations: 1.826 MB / 0.5492 GB, free: 51.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005915/0.5523, allocations: 175.4 kB / 0.5493 GB, free: 50.9 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5523, allocations: 0 / 0.5493 GB, free: 50.9 MB / 382.1 MB Notification: Performance of Templates: time 0.04115/0.5934, allocations: 44.12 MB / 0.5924 GB, free: 6.863 MB / 382.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.makefile (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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)