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.001179/0.001179, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001285/0.001286, allocations: 177.3 kB / 15.94 MB, free: 228 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.427/1.427, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1663/0.1663, allocations: 9.086 MB / 300.1 MB, free: 2.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004926/0.0004927, allocations: 12 kB / 363 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1402, allocations: 52.42 MB / 415.4 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2227/0.3629, allocations: 30.56 MB / 446 MB, free: 26.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.378, allocations: 8.227 MB / 454.2 MB, free: 20.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009236/0.3872, allocations: 130.3 kB / 454.3 MB, free: 20.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005422/0.3927, allocations: 1.472 MB / 455.8 MB, free: 20.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01263/0.4053, allocations: 4.278 MB / 460.1 MB, free: 17.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002771/0.4082, allocations: 0.7057 MB / 460.8 MB, free: 17.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00276/0.4109, allocations: 1.516 MB / 462.3 MB, free: 16.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.413, allocations: 2.022 MB / 464.3 MB, free: 16.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009343/0.414, allocations: 0.7325 MB / 465.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000939/0.4149, allocations: 0.9207 MB / 466 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002119/0.4151, allocations: 127.4 kB / 466.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009358/0.4161, allocations: 478.1 kB / 466.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005981/0.4167, allocations: 0.7281 MB / 467.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000505/0.4172, allocations: 0.5225 MB / 467.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002522/0.4197, allocations: 2.886 MB / 470.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4198, allocations: 4 kB / 470.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.4198, allocations: 3.156 kB / 470.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.67e-05/0.4199, allocations: 0 / 470.7 MB, free: 13.94 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.009158/0.429, allocations: 3.715 MB / 474.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.4291, allocations: 8.906 kB / 474.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/0.4302, allocations: 301 kB / 474.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002289/0.4325, allocations: 1.112 MB / 475.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.4327, allocations: 211.5 kB / 476.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004819/0.4332, allocations: 289.1 kB / 476.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009103/0.4423, allocations: 4.743 MB / 481.1 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001253/0.4425, allocations: 39.98 kB / 481.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002701/0.4427, allocations: 133.1 kB / 481.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006487/0.4434, allocations: 428.1 kB / 481.7 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008162/0.4516, allocations: 3.407 MB / 485.1 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02402/0.4756, allocations: 21.56 MB / 0.4948 GB, free: 5.977 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005378/0.4811, allocations: 1.911 MB / 0.4966 GB, free: 4.758 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002104/0.4832, allocations: 2.035 MB / 0.4986 GB, free: 2.809 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.4833, allocations: 43.91 kB / 0.4987 GB, free: 2.762 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 3.607e-06/0.4833, allocations: 0 / 0.4987 GB, free: 2.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.02649/0.5098, allocations: 10.16 MB / 0.5086 GB, free: 8.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.711e-05/0.5099, allocations: 68.72 kB / 0.5086 GB, free: 8.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002498/0.5124, allocations: 1.762 MB / 0.5104 GB, free: 7.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.5125, allocations: 49.7 kB / 0.5104 GB, free: 6.949 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.5137, allocations: 1.701 MB / 0.5121 GB, free: 5.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000586/0.5143, allocations: 0.5937 MB / 0.5126 GB, free: 4.617 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/0.5144, allocations: 79.94 kB / 0.5127 GB, free: 4.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003529/0.5148, allocations: 0.5069 MB / 0.5132 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/0.5167, allocations: 1.233 MB / 0.5144 GB, free: 2.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003235/0.5199, allocations: 3.414 MB / 0.5178 GB, free: 14.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002735/0.5227, allocations: 1.926 MB / 0.5196 GB, free: 12.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.969e-05/0.5227, allocations: 24 kB / 0.5197 GB, free: 12.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=496) (initialization): time 0.007831/0.5305, allocations: 4.853 MB / 0.5244 GB, free: 7.484 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.461e-05/0.5306, allocations: 36 kB / 0.5244 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-05/0.5307, allocations: 80 kB / 0.5245 GB, free: 7.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.5317, allocations: 384.8 kB / 0.5249 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002929/0.5347, allocations: 0.9203 MB / 0.5258 GB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005297/0.54, allocations: 4.032 MB / 0.5297 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00258/0.5426, allocations: 215.5 kB / 0.5299 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003666/0.543, allocations: 232 kB / 0.5301 GB, free: 1.469 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 (475): * Single equations (assignments): 474 * 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.001551/0.5445, allocations: 0.9432 MB / 0.5311 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/0.5448, allocations: 197.5 kB / 0.5312 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004362/0.5492, allocations: 2.709 MB / 0.5339 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.646e-05/0.5493, allocations: 16 kB / 0.5339 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.5493, allocations: 0 / 0.5339 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.5493, allocations: 11.97 kB / 0.5339 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/0.5624, allocations: 7.14 MB / 0.5409 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/0.5624, allocations: 8 kB / 0.5409 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.5636, allocations: 299.5 kB / 0.5412 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006974/0.5643, allocations: 275.3 kB / 0.5415 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.606e-05/0.5644, allocations: 32 kB / 0.5415 GB, free: 5.641 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004013/0.5684, allocations: 3.283 MB / 0.5447 GB, free: 2.223 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.796e-06/0.5685, allocations: 11.94 kB / 0.5447 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005994/0.5745, allocations: 4.676 MB / 0.5493 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005844/0.5751, allocations: 246.8 kB / 0.5495 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002325/0.5753, allocations: 43.92 kB / 0.5495 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008747/0.5762, allocations: 111.8 kB / 0.5496 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.5764, allocations: 121 kB / 0.5498 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.088e-05/0.5765, allocations: 44 kB / 0.5498 GB, free: 12.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001688/0.5782, allocations: 1.056 MB / 0.5508 GB, free: 11.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5782, allocations: 0 / 0.5508 GB, free: 11.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003535/0.5818, allocations: 0.6445 MB / 0.5515 GB, free: 10.99 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (140): * Single equations (assignments): 139 * 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.0003565/0.5821, allocations: 147.5 kB / 0.5516 GB, free: 10.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005752/0.5879, allocations: 3.388 MB / 0.5549 GB, free: 7.445 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5879, allocations: 0 / 0.5549 GB, free: 7.445 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001855/0.5898, allocations: 1.342 MB / 0.5562 GB, free: 6.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.5917, allocations: 395 kB / 0.5566 GB, free: 5.707 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008702/0.6004, allocations: 6.214 MB / 0.5627 GB, free: 15.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001705/0.6022, allocations: 1.893 MB / 0.5645 GB, free: 13.44 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002331/0.6045, allocations: 0.8906 MB / 0.5654 GB, free: 12.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005007/0.605, allocations: 159.4 kB / 0.5655 GB, free: 12.39 MB / 446.1 MB Notification: Performance of SimCode: time 6.22e-07/0.605, allocations: 0 / 0.5655 GB, free: 12.39 MB / 446.1 MB Notification: Performance of Templates: time 0.244/0.849, allocations: 24.78 MB / 0.5897 GB, free: 119.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)