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.0008303/0.0008308, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009114/0.0009115, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2168/0.2168, allocations: 9.107 MB / 300.2 MB, free: 2.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.0003977, allocations: 12 kB / 363.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1542, allocations: 52.43 MB / 415.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.3209/0.4751, allocations: 32.67 MB / 448.2 MB, free: 24.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02089/0.496, allocations: 7.865 MB / 456.1 MB, free: 19.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00757/0.5036, allocations: 131 kB / 456.2 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005692/0.5094, allocations: 1.385 MB / 457.6 MB, free: 18.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0139/0.5233, allocations: 4.533 MB / 462.1 MB, free: 16.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003201/0.5265, allocations: 0.7077 MB / 462.8 MB, free: 16.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003801/0.5303, allocations: 2.221 MB / 465.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002638/0.533, allocations: 2.016 MB / 467.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001172/0.5342, allocations: 0.7807 MB / 467.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001116/0.5353, allocations: 1.004 MB / 468.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002001/0.5355, allocations: 129.6 kB / 469 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009133/0.5364, allocations: 484.2 kB / 469.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006012/0.5371, allocations: 0.7479 MB / 470.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005318/0.5376, allocations: 0.5291 MB / 470.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002379/0.54, allocations: 2.894 MB / 473.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.54, allocations: 0 / 473.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.54, allocations: 0 / 473.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.536e-05/0.5401, allocations: 0 / 473.6 MB, free: 12.5 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.009967/0.5501, allocations: 3.632 MB / 477.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.5501, allocations: 8.906 kB / 477.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001306/0.5515, allocations: 296.4 kB / 477.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002384/0.5539, allocations: 1.114 MB / 478.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000205/0.5541, allocations: 219 kB / 478.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005397/0.5546, allocations: 283.6 kB / 479.2 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01019/0.5648, allocations: 4.714 MB / 483.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001219/0.565, allocations: 40.8 kB / 483.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002616/0.5652, allocations: 133 kB / 484.1 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005792/0.5658, allocations: 424.3 kB / 484.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00831/0.5742, allocations: 3.348 MB / 487.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02473/0.5989, allocations: 21.63 MB / 0.4975 GB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005086/0.604, allocations: 1.915 MB / 0.4994 GB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.6053, allocations: 0.6957 MB / 0.5001 GB, free: 2.301 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007517/0.6128, allocations: 5.538 MB / 0.5055 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.6129, allocations: 43.5 kB / 0.5055 GB, free: 12.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.236e-06/0.6129, allocations: 0 / 0.5055 GB, free: 12.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02246/0.6353, allocations: 9.575 MB / 0.5149 GB, free: 2.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.6354, allocations: 64.72 kB / 0.5149 GB, free: 2.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/0.6384, allocations: 1.798 MB / 0.5167 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.6386, allocations: 45.7 kB / 0.5167 GB, free: 0.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001441/0.64, allocations: 1.736 MB / 0.5184 GB, free: 14.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006121/0.6406, allocations: 0.5282 MB / 0.5189 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.6408, allocations: 76 kB / 0.519 GB, free: 14.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003955/0.6412, allocations: 0.5028 MB / 0.5195 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00185/0.6431, allocations: 1.21 MB / 0.5207 GB, free: 12.49 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00366/0.6467, allocations: 3.39 MB / 0.524 GB, free: 8.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00289/0.6496, allocations: 1.895 MB / 0.5258 GB, free: 6.121 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.652e-05/0.6497, allocations: 24 kB / 0.5259 GB, free: 6.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007905/0.6576, allocations: 4.782 MB / 0.5305 GB, free: 1.305 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.437e-05/0.6577, allocations: 36.19 kB / 0.5306 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-05/0.6578, allocations: 87.98 kB / 0.5306 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008559/0.6586, allocations: 376.6 kB / 0.531 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002573/0.6612, allocations: 0.8928 MB / 0.5319 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005032/0.6663, allocations: 3.954 MB / 0.5357 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003287/0.6696, allocations: 211.7 kB / 0.5359 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006648/0.6703, allocations: 228 kB / 0.5362 GB, free: 11.4 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002341/0.6726, allocations: 0.9314 MB / 0.5371 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004378/0.6731, allocations: 193.5 kB / 0.5373 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004238/0.6773, allocations: 2.584 MB / 0.5398 GB, free: 7.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.6773, allocations: 20 kB / 0.5398 GB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.6774, allocations: 4 kB / 0.5398 GB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-05/0.6774, allocations: 7.969 kB / 0.5398 GB, free: 7.629 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.6885, allocations: 6.497 MB / 0.5461 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.6885, allocations: 4.469 kB / 0.5462 GB, free: 1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.6895, allocations: 275.5 kB / 0.5464 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006459/0.6902, allocations: 260.6 kB / 0.5467 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.804e-05/0.6903, allocations: 28 kB / 0.5467 GB, free: 456 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004027/0.6943, allocations: 3.191 MB / 0.5498 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6944, allocations: 4 kB / 0.5498 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005463/0.6998, allocations: 3.896 MB / 0.5536 GB, free: 9.156 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009595/0.7008, allocations: 242.7 kB / 0.5538 GB, free: 8.898 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002146/0.701, allocations: 27.98 kB / 0.5539 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007661/0.7018, allocations: 111.8 kB / 0.554 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.702, allocations: 92.81 kB / 0.5541 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-05/0.7021, allocations: 40 kB / 0.5541 GB, free: 8.633 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001819/0.704, allocations: 1.073 MB / 0.5552 GB, free: 7.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.704, allocations: 0 / 0.5552 GB, free: 7.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003141/0.7071, allocations: 0.6328 MB / 0.5558 GB, free: 6.938 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002765/0.7074, allocations: 139.5 kB / 0.5559 GB, free: 6.789 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005564/0.713, allocations: 3.289 MB / 0.5591 GB, free: 3.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.713, allocations: 4.125 kB / 0.5591 GB, free: 3.496 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.7149, allocations: 1.267 MB / 0.5604 GB, free: 2.219 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/0.717, allocations: 400.9 kB / 0.5607 GB, free: 1.832 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00986/0.7268, allocations: 6.041 MB / 0.5666 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001816/0.7287, allocations: 1.833 MB / 0.5684 GB, free: 9.832 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002475/0.7312, allocations: 0.859 MB / 0.5693 GB, free: 8.969 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005041/0.7317, allocations: 159.4 kB / 0.5694 GB, free: 8.816 MB / 446.1 MB Notification: Performance of SimCode: time 1.413e-06/0.7317, allocations: 3.938 kB / 0.5694 GB, free: 8.812 MB / 446.1 MB Notification: Performance of Templates: time 0.2813/1.013, allocations: 24.46 MB / 0.5933 GB, free: 120.9 MB / 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)