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.001062/0.001062, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001172/0.001172, allocations: 191.7 kB / 16.14 MB, free: 6.703 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.384/1.384, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2101/0.2101, allocations: 9.12 MB / 299.1 MB, free: 1.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 63.91 kB / 361.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1239, allocations: 51.44 MB / 412.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2587/0.3827, allocations: 36.17 MB / 448.9 MB, free: 22.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02018/0.4029, allocations: 8.175 MB / 457.1 MB, free: 16.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009517/0.4125, allocations: 135.9 kB / 457.2 MB, free: 16.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.4143, allocations: 305 kB / 457.5 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003245/0.4175, allocations: 0.8092 MB / 458.3 MB, free: 16.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.4193, allocations: 0.8937 MB / 459.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002942/0.4222, allocations: 2.445 MB / 461.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002624/0.4249, allocations: 2.421 MB / 464.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001062/0.4259, allocations: 0.9173 MB / 465 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.4273, allocations: 1.214 MB / 466.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003268/0.4276, allocations: 198.5 kB / 466.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.4288, allocations: 0.6395 MB / 467 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006481/0.4294, allocations: 0.8651 MB / 467.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00103/0.4305, allocations: 1.368 MB / 469.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002586/0.4331, allocations: 3.675 MB / 472.9 MB, free: 9.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.4331, allocations: 7.516 kB / 472.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4331, allocations: 0 / 472.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.732e-05/0.4331, allocations: 0 / 472.9 MB, free: 9.82 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.01043/0.4436, allocations: 4.163 MB / 477.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/0.4436, allocations: 13.44 kB / 477.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000657/0.4443, allocations: 293.3 kB / 477.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001775/0.4461, allocations: 1.135 MB / 478.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.4463, allocations: 212.7 kB / 478.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004277/0.4467, allocations: 293.8 kB / 479 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008672/0.4554, allocations: 4.733 MB / 483.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001147/0.4555, allocations: 38 kB / 483.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002474/0.4558, allocations: 131.7 kB / 483.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006307/0.4564, allocations: 428.3 kB / 484.3 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007907/0.4643, allocations: 3.374 MB / 487.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02733/0.4917, allocations: 21.64 MB / 0.4974 GB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005712/0.4975, allocations: 1.918 MB / 0.4993 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/0.4987, allocations: 0.703 MB / 0.5 GB, free: 384 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007841/0.5066, allocations: 5.534 MB / 0.5054 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.5067, allocations: 43.56 kB / 0.5054 GB, free: 10.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.406e-06/0.5067, allocations: 0 / 0.5054 GB, free: 10.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02308/0.5298, allocations: 9.56 MB / 0.5148 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.5298, allocations: 64.72 kB / 0.5148 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/0.5324, allocations: 1.814 MB / 0.5166 GB, free: 14.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.5325, allocations: 49.7 kB / 0.5166 GB, free: 14.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.5336, allocations: 1.728 MB / 0.5183 GB, free: 12.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004503/0.5341, allocations: 0.5282 MB / 0.5188 GB, free: 12.37 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009433/0.535, allocations: 0.7425 MB / 0.5196 GB, free: 11.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5352, allocations: 357.9 kB / 0.5199 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00177/0.5369, allocations: 1.225 MB / 0.5211 GB, free: 10.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003241/0.5402, allocations: 3.41 MB / 0.5244 GB, free: 5.543 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005622/0.5458, allocations: 5.112 MB / 0.5294 GB, free: 15.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-05/0.5459, allocations: 24 kB / 0.5294 GB, free: 15.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007579/0.5535, allocations: 4.825 MB / 0.5342 GB, free: 10.49 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.624e-05/0.5535, allocations: 40 kB / 0.5342 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-05/0.5536, allocations: 76 kB / 0.5343 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009054/0.5545, allocations: 364.6 kB / 0.5346 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002664/0.5572, allocations: 0.8928 MB / 0.5355 GB, free: 9.121 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005314/0.5626, allocations: 3.96 MB / 0.5394 GB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002798/0.5654, allocations: 207.6 kB / 0.5396 GB, free: 4.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004969/0.5659, allocations: 232 kB / 0.5398 GB, free: 4.594 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 (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.001715/0.5676, allocations: 0.9315 MB / 0.5407 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003625/0.568, allocations: 189.6 kB / 0.5409 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004104/0.5721, allocations: 2.599 MB / 0.5434 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.5721, allocations: 12 kB / 0.5434 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.86e-05/0.5721, allocations: 4 kB / 0.5434 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.5722, allocations: 7.969 kB / 0.5434 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01104/0.5832, allocations: 6.493 MB / 0.5498 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.5833, allocations: 4 kB / 0.5498 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.5843, allocations: 267.6 kB / 0.55 GB, free: 9.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007127/0.585, allocations: 260.6 kB / 0.5503 GB, free: 9.672 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.52e-05/0.5851, allocations: 36 kB / 0.5503 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003939/0.5891, allocations: 3.187 MB / 0.5534 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/0.5891, allocations: 8 kB / 0.5534 GB, free: 6.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005353/0.5945, allocations: 3.915 MB / 0.5573 GB, free: 2.336 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006342/0.5951, allocations: 242.7 kB / 0.5575 GB, free: 2.078 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/0.5953, allocations: 28 kB / 0.5575 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007808/0.5961, allocations: 111.7 kB / 0.5576 GB, free: 1.941 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/0.5964, allocations: 92.81 kB / 0.5577 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.258e-05/0.5965, allocations: 36 kB / 0.5577 GB, free: 1.812 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001719/0.5982, allocations: 1.092 MB / 0.5588 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5982, allocations: 4 kB / 0.5588 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002979/0.6012, allocations: 0.6367 MB / 0.5594 GB, free: 92 kB / 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 (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.0002821/0.6015, allocations: 132.2 kB / 0.5596 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00534/0.6068, allocations: 3.308 MB / 0.5628 GB, free: 12.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.6069, allocations: 0 / 0.5628 GB, free: 12.65 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001846/0.6087, allocations: 1.271 MB / 0.564 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002147/0.6109, allocations: 411.9 kB / 0.5644 GB, free: 10.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008885/0.6198, allocations: 6.21 MB / 0.5705 GB, free: 4.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001671/0.6215, allocations: 1.829 MB / 0.5723 GB, free: 2.809 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002309/0.6238, allocations: 0.8629 MB / 0.5731 GB, free: 1.941 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005164/0.6243, allocations: 159.4 kB / 0.5733 GB, free: 1.785 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6243, allocations: 0 / 0.5733 GB, free: 1.785 MB / 446.1 MB Notification: Performance of Templates: time 0.2312/0.8556, allocations: 25.42 MB / 0.5981 GB, free: 123.7 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)