Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004671/0.004671, allocations: 169.2 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.226/1.226, allocations: 223.2 MB / 239 MB, free: 1.793 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007986/0.0007987, allocations: 100.4 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03885/0.03885, allocations: 8.944 MB / 350.2 MB, free: 2.086 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 9.938 kB / 413.2 MB, free: 88.53 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07941/0.07977, allocations: 52.39 MB / 465.6 MB, free: 41.63 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2596/0.3394, allocations: 85.97 MB / 0.5386 GB, free: 16.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001778/0.3396, allocations: 81.95 kB / 0.5387 GB, free: 16.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1157/0.4553, allocations: 54.49 MB / 0.5919 GB, free: 16.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4553, allocations: 0 / 0.5919 GB, free: 16.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.709e-05/0.4554, allocations: 46.62 kB / 0.592 GB, free: 16.88 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.008177/0.4636, allocations: 2.681 MB / 0.5946 GB, free: 15.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.4636, allocations: 11.62 kB / 0.5946 GB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001983/0.4656, allocations: 0.5138 MB / 0.5951 GB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008359/0.474, allocations: 1.877 MB / 0.5969 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004176/0.4782, allocations: 1.536 MB / 0.5984 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/0.4784, allocations: 201.5 kB / 0.5986 GB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001258/0.4797, allocations: 246 kB / 0.5989 GB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/0.4928, allocations: 6.8 MB / 0.6055 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/0.493, allocations: 19.31 kB / 0.6055 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009237/0.4939, allocations: 113.5 kB / 0.6056 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001268/0.4952, allocations: 0.7944 MB / 0.6064 GB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01174/0.507, allocations: 6.486 MB / 0.6128 GB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03314/0.5401, allocations: 21.18 MB / 0.6334 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003943/0.5441, allocations: 2.009 MB / 0.6354 GB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005096/0.5492, allocations: 3.282 MB / 0.6386 GB, free: 9.543 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.5493, allocations: 43.2 kB / 0.6386 GB, free: 9.492 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 3.367e-06/0.5493, allocations: 0 / 0.6386 GB, free: 9.492 MB / 410.7 MB Notification: Performance of matching and sorting (n=120): time 0.01045/0.5598, allocations: 5.832 MB / 0.6443 GB, free: 3.508 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.5598, allocations: 64.34 kB / 0.6444 GB, free: 3.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00332/0.5632, allocations: 2.034 MB / 0.6464 GB, free: 1.355 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.371e-05/0.5633, allocations: 41.7 kB / 0.6464 GB, free: 1.309 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001168/0.5644, allocations: 1.832 MB / 0.6482 GB, free: 15.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003655/0.5648, allocations: 457.7 kB / 0.6486 GB, free: 15.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.565, allocations: 64 kB / 0.6487 GB, free: 14.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002296/0.5652, allocations: 449.1 kB / 0.6491 GB, free: 14.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/0.5669, allocations: 1.076 MB / 0.6502 GB, free: 13.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002684/0.5696, allocations: 2.931 MB / 0.6531 GB, free: 9.582 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002392/0.572, allocations: 1.798 MB / 0.6548 GB, free: 7.789 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-05/0.5721, allocations: 20 kB / 0.6548 GB, free: 7.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.006046/0.5781, allocations: 4.096 MB / 0.6588 GB, free: 3.668 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/0.5782, allocations: 34.59 kB / 0.6589 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.439e-05/0.5782, allocations: 71.94 kB / 0.6589 GB, free: 3.566 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004661/0.5787, allocations: 216.7 kB / 0.6591 GB, free: 3.355 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/0.5808, allocations: 0.7252 MB / 0.6598 GB, free: 2.629 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002566/0.5834, allocations: 2.5 MB / 0.6623 GB, free: 15.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/0.5853, allocations: 171.9 kB / 0.6624 GB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002594/0.5856, allocations: 196 kB / 0.6626 GB, free: 15.63 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (395): * Single equations (assignments): 390 * Array equations: 4 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002016/0.5876, allocations: 1.425 MB / 0.664 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002725/0.5879, allocations: 185.6 kB / 0.6642 GB, free: 14.01 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00254/0.5905, allocations: 1.584 MB / 0.6657 GB, free: 12.42 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.737e-05/0.5906, allocations: 23.98 kB / 0.6658 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.5906, allocations: 4 kB / 0.6658 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.5906, allocations: 3.984 kB / 0.6658 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008299/0.5989, allocations: 4.863 MB / 0.6705 GB, free: 7.426 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.5989, allocations: 0 / 0.6705 GB, free: 7.426 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000624/0.5995, allocations: 160.1 kB / 0.6707 GB, free: 7.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003122/0.5999, allocations: 125 kB / 0.6708 GB, free: 7.148 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.676e-05/0.5999, allocations: 16.28 kB / 0.6708 GB, free: 7.133 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001853/0.6018, allocations: 2.045 MB / 0.6728 GB, free: 4.957 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.6018, allocations: 11.97 kB / 0.6728 GB, free: 4.945 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0036/0.6054, allocations: 2.69 MB / 0.6755 GB, free: 2.098 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005058/0.606, allocations: 274.7 kB / 0.6757 GB, free: 1.809 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002687/0.6062, allocations: 19.98 kB / 0.6757 GB, free: 1.789 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007277/0.607, allocations: 52 kB / 0.6758 GB, free: 1.738 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.6071, allocations: 64.88 kB / 0.6758 GB, free: 1.676 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.378e-05/0.6072, allocations: 43.89 kB / 0.6759 GB, free: 1.637 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002114/0.6093, allocations: 1.461 MB / 0.6773 GB, free: 156 kB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6093, allocations: 0 / 0.6773 GB, free: 156 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.002356/0.6117, allocations: 0.5781 MB / 0.6779 GB, free: 15.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.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 (87): * Single equations (assignments): 82 * Array equations: 4 * 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 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003877/0.6155, allocations: 4.034 MB / 0.6818 GB, free: 11.44 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003746/0.6193, allocations: 2.603 MB / 0.6844 GB, free: 8.832 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.6193, allocations: 1.25 kB / 0.6844 GB, free: 8.832 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.6203, allocations: 0.8169 MB / 0.6852 GB, free: 8.004 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.6216, allocations: 298 kB / 0.6854 GB, free: 7.711 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1829/0.8045, allocations: 62.26 MB / 0.7462 GB, free: 77.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001865/0.8064, allocations: 2.41 MB / 0.7486 GB, free: 76.46 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002309/0.8087, allocations: 1.048 MB / 0.7496 GB, free: 76.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.8097, allocations: 1.105 MB / 0.7507 GB, free: 76.45 MB / 458.7 MB Notification: Performance of SimCode: time 1.432e-06/0.8097, allocations: 0 / 0.7507 GB, free: 76.45 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05757/0.8673, allocations: 44.81 MB / 0.7945 GB, free: 60.34 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001287/0.8675, allocations: 188.5 kB / 0.7946 GB, free: 60.09 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.629/3.497, allocations: 0 / 0.7946 GB, free: 60.09 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_Pendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)