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.005704/0.005704, allocations: 94.81 kB / 15.73 MB, free: 6.039 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.001347/0.001347, allocations: 203.4 kB / 16.68 MB, free: 5.969 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.185/0.185, allocations: 9.108 MB / 299.6 MB, free: 1.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.91 kB / 414.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2496, allocations: 51.42 MB / 466.1 MB, free: 18.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01245/0.2621, allocations: 13.79 MB / 479.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007567/0.2697, allocations: 4.027 MB / 483.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.2713, allocations: 50.66 kB / 483.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008082/0.2721, allocations: 395 kB / 484.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002205/0.2744, allocations: 0.9088 MB / 485.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.2759, allocations: 0.9756 MB / 486.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002375/0.2782, allocations: 2.223 MB / 488.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002594/0.2809, allocations: 2.773 MB / 491.2 MB, free: 228 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.2821, allocations: 1.019 MB / 492.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001337/0.2835, allocations: 1.232 MB / 493.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003512/0.2838, allocations: 310.7 kB / 493.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.285, allocations: 0.7152 MB / 494.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000765/0.2858, allocations: 0.9618 MB / 495.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001215/0.287, allocations: 1.492 MB / 496.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003601/0.2906, allocations: 3.891 MB / 0.4891 GB, free: 9.293 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.2906, allocations: 0 / 0.4891 GB, free: 9.293 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2906, allocations: 0 / 0.4891 GB, free: 9.293 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.077e-05/0.2907, allocations: 0 / 0.4891 GB, free: 9.293 MB / 366.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.00903/0.2997, allocations: 4.238 MB / 0.4932 GB, free: 4.988 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.2998, allocations: 12.03 kB / 0.4932 GB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005484/0.3003, allocations: 310.9 kB / 0.4935 GB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001551/0.3019, allocations: 1.144 MB / 0.4946 GB, free: 3.484 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.302, allocations: 221.9 kB / 0.4949 GB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003364/0.3024, allocations: 295.8 kB / 0.4951 GB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007351/0.3097, allocations: 4.736 MB / 0.4998 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.99e-05/0.3099, allocations: 35.7 kB / 0.4998 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002415/0.3101, allocations: 132 kB / 0.4999 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005046/0.3106, allocations: 428.2 kB / 0.5003 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006012/0.3167, allocations: 3.377 MB / 0.5036 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02066/0.3373, allocations: 21.6 MB / 0.5247 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004727/0.3421, allocations: 1.913 MB / 0.5266 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.3431, allocations: 0.6948 MB / 0.5273 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006584/0.3497, allocations: 5.55 MB / 0.5327 GB, free: 10.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.3498, allocations: 43.56 kB / 0.5327 GB, free: 10.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 3.998e-06/0.3498, allocations: 0 / 0.5327 GB, free: 10.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02228/0.3721, allocations: 9.615 MB / 0.5421 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.3722, allocations: 64.72 kB / 0.5422 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002696/0.3749, allocations: 1.811 MB / 0.544 GB, free: 15.03 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.04e-05/0.375, allocations: 49.7 kB / 0.544 GB, free: 14.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/0.3762, allocations: 1.81 MB / 0.5458 GB, free: 13.15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006502/0.3769, allocations: 0.5503 MB / 0.5463 GB, free: 12.59 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001167/0.378, allocations: 0.7547 MB / 0.547 GB, free: 11.83 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3782, allocations: 357.9 kB / 0.5474 GB, free: 11.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002288/0.3805, allocations: 1.222 MB / 0.5486 GB, free: 10.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003742/0.3843, allocations: 3.41 MB / 0.5519 GB, free: 5.762 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006133/0.3904, allocations: 5.12 MB / 0.5569 GB, free: 15.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.771e-05/0.3905, allocations: 24 kB / 0.5569 GB, free: 15.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007754/0.3983, allocations: 4.821 MB / 0.5616 GB, free: 10.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.252e-05/0.3984, allocations: 40 kB / 0.5617 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/0.3985, allocations: 76.84 kB / 0.5617 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008563/0.3993, allocations: 368.6 kB / 0.5621 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002588/0.4019, allocations: 0.8929 MB / 0.563 GB, free: 9.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005691/0.4076, allocations: 4.289 MB / 0.5672 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002879/0.4105, allocations: 219.8 kB / 0.5674 GB, free: 4.684 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005811/0.4111, allocations: 224 kB / 0.5676 GB, free: 4.465 MB / 446.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.001995/0.4131, allocations: 0.9281 MB / 0.5685 GB, free: 3.527 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005184/0.4137, allocations: 202.6 kB / 0.5687 GB, free: 3.328 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004799/0.4185, allocations: 2.607 MB / 0.5712 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.112e-05/0.4185, allocations: 12 kB / 0.5712 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.708e-05/0.4186, allocations: 7.938 kB / 0.5712 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/0.4186, allocations: 3.984 kB / 0.5713 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01385/0.4324, allocations: 6.423 MB / 0.5775 GB, free: 10.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/0.4325, allocations: 4 kB / 0.5775 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.4336, allocations: 275.5 kB / 0.5778 GB, free: 9.855 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007192/0.4343, allocations: 267.8 kB / 0.578 GB, free: 9.594 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.4345, allocations: 24 kB / 0.5781 GB, free: 9.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004315/0.4388, allocations: 3.459 MB / 0.5814 GB, free: 5.969 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.4388, allocations: 15.81 kB / 0.5815 GB, free: 5.953 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005556/0.4444, allocations: 3.913 MB / 0.5853 GB, free: 1.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005954/0.445, allocations: 263.8 kB / 0.5855 GB, free: 1.703 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000343/0.4453, allocations: 28 kB / 0.5856 GB, free: 1.676 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009867/0.4463, allocations: 99.84 kB / 0.5857 GB, free: 1.578 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.4465, allocations: 96.75 kB / 0.5857 GB, free: 1.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-05/0.4466, allocations: 40 kB / 0.5858 GB, free: 1.441 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001898/0.4485, allocations: 1.088 MB / 0.5869 GB, free: 372 kB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4486, allocations: 0 / 0.5869 GB, free: 372 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.2333/0.6818, allocations: 0.6314 MB / 0.5875 GB, free: 111.7 MB / 462.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.000296/0.6822, allocations: 139 kB / 0.5876 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005449/0.6876, allocations: 3.329 MB / 0.5909 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.6876, allocations: 0.875 kB / 0.5909 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.6894, allocations: 1.273 MB / 0.5921 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002065/0.6914, allocations: 445 kB / 0.5925 GB, free: 110.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007927/0.6994, allocations: 5.059 MB / 0.5975 GB, free: 108.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001761/0.7012, allocations: 1.826 MB / 0.5992 GB, free: 107.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002334/0.7035, allocations: 0.8626 MB / 0.6001 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005084/0.704, allocations: 154.7 kB / 0.6002 GB, free: 107.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.723e-06/0.7041, allocations: 0 / 0.6002 GB, free: 107.2 MB / 462.1 MB Notification: Performance of Templates: time 0.04216/0.7462, allocations: 27.52 MB / 0.6271 GB, free: 93.58 MB / 462.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)