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.001084/0.001084, allocations: 103.5 kB / 16.35 MB, free: 5.824 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.001148/0.001148, allocations: 192.2 kB / 17.29 MB, free: 5.48 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.323/1.323, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04421/0.04421, allocations: 9.114 MB / 300.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 63.91 kB / 363.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2102, allocations: 51.43 MB / 414.8 MB, free: 24.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01015/0.2204, allocations: 13.8 MB / 428.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008867/0.2293, allocations: 4.028 MB / 432.6 MB, free: 7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002824/0.2321, allocations: 55.88 kB / 432.7 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.2334, allocations: 396.7 kB / 433.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003251/0.2367, allocations: 0.901 MB / 434 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.2381, allocations: 0.9675 MB / 434.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002431/0.2405, allocations: 2.245 MB / 437.2 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002314/0.2429, allocations: 2.756 MB / 439.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.244, allocations: 1.024 MB / 441 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001344/0.2453, allocations: 1.233 MB / 442.2 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003386/0.2457, allocations: 308 kB / 442.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009947/0.2467, allocations: 0.7141 MB / 443.2 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007517/0.2474, allocations: 0.9701 MB / 444.2 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001201/0.2487, allocations: 1.481 MB / 445.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003139/0.2518, allocations: 3.878 MB / 449.5 MB, free: 5.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2518, allocations: 0 / 449.5 MB, free: 5.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2518, allocations: 4 kB / 449.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.936e-05/0.2519, allocations: 0 / 449.5 MB, free: 5.969 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.008802/0.2607, allocations: 4.164 MB / 453.7 MB, free: 1.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2607, allocations: 8.031 kB / 453.7 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004804/0.2612, allocations: 297.1 kB / 454 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001831/0.2631, allocations: 1.139 MB / 455.1 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.2632, allocations: 210 kB / 455.3 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003798/0.2636, allocations: 299.7 kB / 455.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00717/0.2708, allocations: 4.744 MB / 460.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.175e-05/0.2709, allocations: 35.72 kB / 460.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002422/0.2711, allocations: 128 kB / 460.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004771/0.2716, allocations: 428.2 kB / 461 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006083/0.2777, allocations: 3.374 MB / 464.3 MB, free: 6.566 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02139/0.2991, allocations: 21.54 MB / 485.9 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004862/0.304, allocations: 1.928 MB / 487.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000992/0.3051, allocations: 0.687 MB / 488.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006823/0.3119, allocations: 5.549 MB / 494 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.312, allocations: 39.56 kB / 494.1 MB, free: 7.457 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 3.296e-06/0.312, allocations: 0 / 494.1 MB, free: 7.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02369/0.3357, allocations: 9.551 MB / 0.4918 GB, free: 13.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.3358, allocations: 68.72 kB / 0.4919 GB, free: 13.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002435/0.3382, allocations: 1.814 MB / 0.4937 GB, free: 11.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.3383, allocations: 45.7 kB / 0.4937 GB, free: 11.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.3394, allocations: 1.736 MB / 0.4954 GB, free: 10.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004258/0.3399, allocations: 0.5244 MB / 0.4959 GB, free: 9.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000894/0.3408, allocations: 0.7424 MB / 0.4966 GB, free: 8.805 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3409, allocations: 365.8 kB / 0.497 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/0.3427, allocations: 1.225 MB / 0.4982 GB, free: 7.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002915/0.3456, allocations: 3.406 MB / 0.5015 GB, free: 2.727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2146/0.5602, allocations: 5.116 MB / 0.5065 GB, free: 85.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.209e-05/0.5603, allocations: 22.06 kB / 0.5065 GB, free: 85.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007745/0.5681, allocations: 4.816 MB / 0.5112 GB, free: 83.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.347e-05/0.5682, allocations: 40.25 kB / 0.5113 GB, free: 83.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/0.5683, allocations: 76.16 kB / 0.5113 GB, free: 83.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009375/0.5692, allocations: 371.9 kB / 0.5117 GB, free: 83.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002951/0.5722, allocations: 0.899 MB / 0.5126 GB, free: 83.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004658/0.5769, allocations: 4.293 MB / 0.5168 GB, free: 80.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002415/0.5793, allocations: 211 kB / 0.517 GB, free: 80.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002517/0.5796, allocations: 230.5 kB / 0.5172 GB, free: 80.56 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.001216/0.5808, allocations: 0.9287 MB / 0.5181 GB, free: 80.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002299/0.581, allocations: 193.3 kB / 0.5183 GB, free: 80.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003322/0.5843, allocations: 2.601 MB / 0.5208 GB, free: 78.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.5844, allocations: 19.41 kB / 0.5208 GB, free: 78.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.5844, allocations: 3.938 kB / 0.5208 GB, free: 78.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.5844, allocations: 7.453 kB / 0.5208 GB, free: 78.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008869/0.5933, allocations: 6.414 MB / 0.5271 GB, free: 74.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.5933, allocations: 6.844 kB / 0.5271 GB, free: 74.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009427/0.5943, allocations: 267.6 kB / 0.5274 GB, free: 74.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005729/0.5948, allocations: 260.6 kB / 0.5276 GB, free: 73.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.907e-05/0.5949, allocations: 28 kB / 0.5277 GB, free: 73.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003128/0.5981, allocations: 3.462 MB / 0.531 GB, free: 70.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5981, allocations: 8.062 kB / 0.531 GB, free: 70.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00391/0.602, allocations: 3.905 MB / 0.5349 GB, free: 66.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004843/0.6025, allocations: 238.7 kB / 0.5351 GB, free: 66.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000197/0.6027, allocations: 28 kB / 0.5351 GB, free: 65.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007829/0.6035, allocations: 103.8 kB / 0.5352 GB, free: 65.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.6037, allocations: 100.8 kB / 0.5353 GB, free: 65.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.325e-05/0.6038, allocations: 36 kB / 0.5353 GB, free: 65.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001165/0.6049, allocations: 1.092 MB / 0.5364 GB, free: 64.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6049, allocations: 0 / 0.5364 GB, free: 64.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002441/0.6074, allocations: 0.6328 MB / 0.537 GB, free: 64.04 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.0002209/0.6076, allocations: 139 kB / 0.5372 GB, free: 63.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00395/0.6116, allocations: 3.327 MB / 0.5404 GB, free: 60.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6116, allocations: 0 / 0.5404 GB, free: 60.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.6129, allocations: 1.269 MB / 0.5416 GB, free: 59.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001671/0.6146, allocations: 457.8 kB / 0.5421 GB, free: 58.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005715/0.6203, allocations: 4.985 MB / 0.5469 GB, free: 53.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.6215, allocations: 1.826 MB / 0.5487 GB, free: 51.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001612/0.6231, allocations: 0.8589 MB / 0.5496 GB, free: 51.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/0.6235, allocations: 155.4 kB / 0.5497 GB, free: 50.95 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.6235, allocations: 2.406 kB / 0.5497 GB, free: 50.95 MB / 382.1 MB Notification: Performance of Templates: time 0.0345/0.658, allocations: 26.45 MB / 0.5756 GB, free: 24.61 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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)