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.00145/0.00145, allocations: 111.7 kB / 16.37 MB, free: 5.949 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.001587/0.001587, allocations: 199 kB / 17.31 MB, free: 5.574 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.291/1.291, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04371/0.04371, allocations: 9.114 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 59.91 kB / 363.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.216, allocations: 51.43 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.009831/0.2258, allocations: 13.79 MB / 428.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007927/0.2338, allocations: 4.028 MB / 432.6 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002705/0.2365, allocations: 55.88 kB / 432.7 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.2376, allocations: 392.7 kB / 433.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00326/0.241, allocations: 0.8971 MB / 434 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001979/0.243, allocations: 0.9753 MB / 434.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00251/0.2455, allocations: 2.235 MB / 437.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002169/0.2477, allocations: 2.779 MB / 440 MB, free: 15.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009196/0.2486, allocations: 1.02 MB / 441 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.2498, allocations: 1.222 MB / 442.2 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003125/0.2502, allocations: 312 kB / 442.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009645/0.2511, allocations: 0.7179 MB / 443.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006979/0.2518, allocations: 0.9663 MB / 444.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001166/0.253, allocations: 1.485 MB / 445.7 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003139/0.2562, allocations: 3.882 MB / 449.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.2562, allocations: 0 / 449.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.2562, allocations: 0 / 449.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.963e-05/0.2562, allocations: 3.938 kB / 449.6 MB, free: 5.945 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.00882/0.2651, allocations: 4.16 MB / 453.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.2651, allocations: 8.031 kB / 453.7 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004981/0.2656, allocations: 293.2 kB / 454 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001936/0.2676, allocations: 1.139 MB / 455.2 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.2677, allocations: 218 kB / 455.4 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003752/0.2681, allocations: 295.7 kB / 455.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007065/0.2752, allocations: 4.74 MB / 460.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/0.2753, allocations: 39.66 kB / 460.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002361/0.2755, allocations: 128 kB / 460.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004896/0.276, allocations: 428.2 kB / 461 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006224/0.2823, allocations: 3.37 MB / 464.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02255/0.3048, allocations: 21.55 MB / 485.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005253/0.3101, allocations: 1.927 MB / 487.8 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/0.3113, allocations: 0.6908 MB / 488.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007327/0.3187, allocations: 5.545 MB / 494.1 MB, free: 7.484 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.3187, allocations: 39.56 kB / 494.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 3.978e-06/0.3187, allocations: 0 / 494.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02179/0.3405, allocations: 9.555 MB / 0.4918 GB, free: 13.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.3406, allocations: 64.72 kB / 0.4919 GB, free: 13.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002582/0.3432, allocations: 1.818 MB / 0.4937 GB, free: 11.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001738/0.3434, allocations: 45.7 kB / 0.4937 GB, free: 11.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.3445, allocations: 1.739 MB / 0.4954 GB, free: 10.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004832/0.345, allocations: 0.5205 MB / 0.4959 GB, free: 9.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009645/0.3459, allocations: 0.7385 MB / 0.4967 GB, free: 8.785 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003067/0.3462, allocations: 361.9 kB / 0.497 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/0.3479, allocations: 1.222 MB / 0.4982 GB, free: 7.203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003368/0.3512, allocations: 3.41 MB / 0.5015 GB, free: 2.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2151/0.5664, allocations: 5.11 MB / 0.5065 GB, free: 85.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-05/0.5665, allocations: 30.22 kB / 0.5065 GB, free: 85.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.01029/0.5768, allocations: 4.814 MB / 0.5112 GB, free: 83.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.577, allocations: 40.33 kB / 0.5113 GB, free: 83.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003039/0.5773, allocations: 78.69 kB / 0.5114 GB, free: 83.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.5784, allocations: 373.8 kB / 0.5117 GB, free: 83.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003255/0.5817, allocations: 0.8913 MB / 0.5126 GB, free: 83.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00523/0.5869, allocations: 4.293 MB / 0.5168 GB, free: 80.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003091/0.59, allocations: 214.4 kB / 0.517 GB, free: 80.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000585/0.5906, allocations: 233.3 kB / 0.5172 GB, free: 80.66 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.001949/0.5926, allocations: 0.9245 MB / 0.5181 GB, free: 80.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003722/0.593, allocations: 190.8 kB / 0.5183 GB, free: 80.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003751/0.5967, allocations: 2.598 MB / 0.5208 GB, free: 79.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.5968, allocations: 15.72 kB / 0.5208 GB, free: 79.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.5968, allocations: 3.938 kB / 0.5208 GB, free: 79.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.5968, allocations: 7.5 kB / 0.5209 GB, free: 79.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.6076, allocations: 6.419 MB / 0.5271 GB, free: 74.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.6076, allocations: 6 kB / 0.5271 GB, free: 74.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.6087, allocations: 271.6 kB / 0.5274 GB, free: 74.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000619/0.6093, allocations: 267.7 kB / 0.5276 GB, free: 73.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000112/0.6094, allocations: 28 kB / 0.5277 GB, free: 73.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003334/0.6128, allocations: 3.455 MB / 0.531 GB, free: 70.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.6128, allocations: 11.33 kB / 0.5311 GB, free: 70.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004472/0.6173, allocations: 3.902 MB / 0.5349 GB, free: 66.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006253/0.6179, allocations: 238.7 kB / 0.5351 GB, free: 66.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004044/0.6183, allocations: 36 kB / 0.5351 GB, free: 65.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009695/0.6193, allocations: 99.84 kB / 0.5352 GB, free: 65.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002263/0.6196, allocations: 100.8 kB / 0.5353 GB, free: 65.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.828e-05/0.6196, allocations: 36 kB / 0.5354 GB, free: 65.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001787/0.6214, allocations: 1.092 MB / 0.5364 GB, free: 64.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6214, allocations: 0 / 0.5364 GB, free: 64.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003013/0.6245, 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.0002927/0.6248, allocations: 142.9 kB / 0.5372 GB, free: 63.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004507/0.6293, allocations: 3.323 MB / 0.5404 GB, free: 60.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.6293, allocations: 0 / 0.5404 GB, free: 60.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001381/0.6307, allocations: 1.278 MB / 0.5417 GB, free: 59.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.6327, allocations: 436.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.006868/0.6396, allocations: 4.99 MB / 0.547 GB, free: 53.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001194/0.6408, allocations: 1.822 MB / 0.5487 GB, free: 51.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001751/0.6426, allocations: 0.8636 MB / 0.5496 GB, free: 51.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004432/0.643, allocations: 155.4 kB / 0.5497 GB, free: 50.95 MB / 382.1 MB Notification: Performance of SimCode: time 2.164e-06/0.643, allocations: 0 / 0.5497 GB, free: 50.95 MB / 382.1 MB Notification: Performance of Templates: time 0.03685/0.6799, allocations: 26.46 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 cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)