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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.001489/0.001489, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 197 kB / 16.53 MB, free: 6.664 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.427/1.427, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2156/0.2156, allocations: 9.124 MB / 299.5 MB, free: 1.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 59.89 kB / 361.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1282, allocations: 51.44 MB / 413.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2852/0.4135, allocations: 13.79 MB / 427.2 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009323/0.4229, allocations: 4.024 MB / 431.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003505/0.4265, allocations: 52.47 kB / 431.2 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.4279, allocations: 396.2 kB / 431.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003462/0.4314, allocations: 0.9075 MB / 432.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.4333, allocations: 0.9684 MB / 433.5 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003001/0.4363, allocations: 2.199 MB / 435.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002736/0.439, allocations: 2.763 MB / 438.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.4402, allocations: 1.018 MB / 439.5 MB, free: 31.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001292/0.4415, allocations: 1.234 MB / 440.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003526/0.4419, allocations: 309.7 kB / 441 MB, free: 31.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.443, allocations: 0.7086 MB / 441.7 MB, free: 31.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006405/0.4437, allocations: 0.9691 MB / 442.7 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001158/0.4448, allocations: 1.487 MB / 444.2 MB, free: 29.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00345/0.4483, allocations: 3.78 MB / 448 MB, free: 27.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.4483, allocations: 4 kB / 448 MB, free: 27.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4483, allocations: 3.938 kB / 448 MB, free: 27.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001137/0.4484, allocations: 0 / 448 MB, free: 27.97 MB / 350.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.01098/0.4594, allocations: 4.155 MB / 452.1 MB, free: 26.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/0.4595, allocations: 9.688 kB / 452.1 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007115/0.4602, allocations: 297.3 kB / 452.4 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00174/0.462, allocations: 1.134 MB / 453.6 MB, free: 25.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.4621, allocations: 212.5 kB / 453.8 MB, free: 25.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003993/0.4625, allocations: 301.7 kB / 454.1 MB, free: 25.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007591/0.4701, allocations: 4.74 MB / 458.8 MB, free: 22.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/0.4703, allocations: 35.16 kB / 458.8 MB, free: 22.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002291/0.4705, allocations: 130.7 kB / 459 MB, free: 22.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004844/0.471, allocations: 427.5 kB / 459.4 MB, free: 22.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00732/0.4784, allocations: 3.379 MB / 462.8 MB, free: 21.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02752/0.5059, allocations: 21.63 MB / 484.4 MB, free: 20.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005824/0.5118, allocations: 1.92 MB / 486.3 MB, free: 19.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/0.5132, allocations: 0.7001 MB / 487 MB, free: 19.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008557/0.5218, allocations: 5.541 MB / 492.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.5219, allocations: 45.42 kB / 492.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 6.772e-06/0.5219, allocations: 0 / 492.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02396/0.5458, allocations: 9.556 MB / 0.4904 GB, free: 9.836 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.546, allocations: 64.72 kB / 0.4905 GB, free: 9.762 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003521/0.5495, allocations: 1.818 MB / 0.4922 GB, free: 7.945 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.5496, allocations: 49.7 kB / 0.4923 GB, free: 7.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.5512, allocations: 1.728 MB / 0.494 GB, free: 6.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007157/0.5519, allocations: 0.5243 MB / 0.4945 GB, free: 5.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/0.5534, allocations: 0.7463 MB / 0.4952 GB, free: 4.852 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.5535, allocations: 357.9 kB / 0.4955 GB, free: 4.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/0.5557, allocations: 1.229 MB / 0.4967 GB, free: 3.266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003589/0.5593, allocations: 3.406 MB / 0.5001 GB, free: 14.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006511/0.5659, allocations: 5.116 MB / 0.5051 GB, free: 8.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.235e-05/0.566, allocations: 24 kB / 0.5051 GB, free: 8.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.00881/0.5748, allocations: 4.817 MB / 0.5098 GB, free: 3.723 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.367e-05/0.5749, allocations: 36 kB / 0.5098 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000125/0.575, allocations: 80 kB / 0.5099 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009665/0.576, allocations: 370.2 kB / 0.5103 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002881/0.5789, allocations: 0.8967 MB / 0.5111 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005494/0.5844, allocations: 4.295 MB / 0.5153 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002951/0.5874, allocations: 215.7 kB / 0.5155 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006665/0.5881, allocations: 232 kB / 0.5158 GB, free: 13.48 MB / 398.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.002292/0.5904, allocations: 0.9281 MB / 0.5167 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005342/0.5909, allocations: 201.4 kB / 0.5169 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004569/0.5955, allocations: 2.595 MB / 0.5194 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.5956, allocations: 16 kB / 0.5194 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.5956, allocations: 3.938 kB / 0.5194 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/0.5956, allocations: 7.984 kB / 0.5194 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.608, allocations: 6.489 MB / 0.5258 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/0.6081, allocations: 4 kB / 0.5258 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.6092, allocations: 271.5 kB / 0.526 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007057/0.6099, allocations: 261 kB / 0.5263 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.6101, allocations: 28 kB / 0.5263 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004083/0.6142, allocations: 3.465 MB / 0.5297 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.6142, allocations: 4 kB / 0.5297 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005467/0.6197, allocations: 3.911 MB / 0.5335 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007292/0.6204, allocations: 242.7 kB / 0.5337 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005175/0.621, allocations: 28 kB / 0.5338 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.6221, allocations: 107.8 kB / 0.5339 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002627/0.6224, allocations: 96.75 kB / 0.534 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.992e-05/0.6225, allocations: 36 kB / 0.534 GB, free: 10.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002313/0.6248, allocations: 1.088 MB / 0.5351 GB, free: 9.348 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6248, allocations: 0 / 0.5351 GB, free: 9.348 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004135/0.629, allocations: 0.6367 MB / 0.5357 GB, free: 8.711 MB / 414.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.0003827/0.6294, allocations: 139 kB / 0.5358 GB, free: 8.562 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007585/0.637, allocations: 4.291 MB / 0.54 GB, free: 4.277 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.637, allocations: 4 kB / 0.54 GB, free: 4.273 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001856/0.6389, allocations: 1.273 MB / 0.5412 GB, free: 2.988 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002669/0.6416, allocations: 458 kB / 0.5417 GB, free: 2.566 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00973/0.6513, allocations: 5.035 MB / 0.5466 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00251/0.6539, allocations: 1.833 MB / 0.5484 GB, free: 11.58 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002747/0.6566, allocations: 0.855 MB / 0.5492 GB, free: 10.72 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000718/0.6574, allocations: 159.3 kB / 0.5494 GB, free: 10.57 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6574, allocations: 0 / 0.5494 GB, free: 10.57 MB / 430.1 MB Notification: Performance of Templates: time 0.05283/0.7102, allocations: 26.46 MB / 0.5752 GB, free: 184 kB / 446.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)