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/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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006535/0.006535, allocations: 103.5 kB / 15.73 MB, free: 6.051 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.001234/0.001234, allocations: 189.2 kB / 16.67 MB, free: 5.969 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04399/0.04399, allocations: 9.108 MB / 299.6 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 59.91 kB / 414.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08463/0.08585, allocations: 51.44 MB / 465.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.007562/0.09344, allocations: 7.008 MB / 472.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004536/0.09801, allocations: 2.358 MB / 474.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.09914, allocations: 24 kB / 475 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.1005, allocations: 314 kB / 475.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004057/0.1046, allocations: 1.265 MB / 476.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.105, allocations: 83.83 kB / 476.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00283/0.1078, allocations: 2.156 MB / 478.8 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001361/0.1092, allocations: 0.7153 MB / 479.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001442/0.1107, allocations: 0.7626 MB / 480.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001907/0.1126, allocations: 1.125 MB / 481.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006281/0.1133, allocations: 204 kB / 481.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001749/0.115, allocations: 0.7879 MB / 482.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001334/0.1164, allocations: 1.067 MB / 483.4 MB, free: 232 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002077/0.1185, allocations: 1.355 MB / 484.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005471/0.1239, allocations: 4.485 MB / 489.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.124, allocations: 0 / 489.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.124, allocations: 0 / 489.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00018/0.1242, allocations: 0 / 489.3 MB, free: 10.36 MB / 366.1 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.008618/0.1328, allocations: 3.356 MB / 492.6 MB, free: 6.949 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.1329, allocations: 16.02 kB / 492.6 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006051/0.1335, allocations: 484.1 kB / 493.1 MB, free: 6.453 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006057/0.1395, allocations: 1.705 MB / 494.8 MB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002212/0.1418, allocations: 1.201 MB / 496 MB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.694e-05/0.1419, allocations: 127.3 kB / 496.1 MB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003464/0.1423, allocations: 160 kB / 496.3 MB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01018/0.1524, allocations: 7.205 MB / 0.4917 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.147e-05/0.1525, allocations: 19.88 kB / 0.4917 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002477/0.1528, allocations: 71.88 kB / 0.4918 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002723/0.1555, allocations: 1.738 MB / 0.4935 GB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01174/0.1673, allocations: 6.584 MB / 0.4999 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2329/0.4002, allocations: 21.11 MB / 0.5205 GB, free: 28.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003705/0.4039, allocations: 2.019 MB / 0.5225 GB, free: 27.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009011/0.4048, allocations: 0.6762 MB / 0.5232 GB, free: 27.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004095/0.4089, allocations: 3.28 MB / 0.5264 GB, free: 25.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.409, allocations: 39.19 kB / 0.5264 GB, free: 25.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 2.845e-06/0.409, allocations: 0 / 0.5264 GB, free: 25.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.009482/0.4185, allocations: 5.528 MB / 0.5318 GB, free: 22.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.4185, allocations: 64.22 kB / 0.5319 GB, free: 22.81 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002422/0.421, allocations: 2.274 MB / 0.5341 GB, free: 21.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.012e-05/0.421, allocations: 37.45 kB / 0.5341 GB, free: 21.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006352/0.4217, allocations: 1.834 MB / 0.5359 GB, free: 19.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/0.4219, allocations: 462.8 kB / 0.5364 GB, free: 19.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000616/0.4225, allocations: 0.6607 MB / 0.537 GB, free: 19.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.765e-05/0.4226, allocations: 305.1 kB / 0.5373 GB, free: 18.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.4239, allocations: 1.098 MB / 0.5384 GB, free: 18.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001916/0.4258, allocations: 2.969 MB / 0.5413 GB, free: 15.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003697/0.4295, allocations: 4.373 MB / 0.5455 GB, free: 10.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-05/0.4295, allocations: 20 kB / 0.5456 GB, free: 10.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.00502/0.4346, allocations: 4.129 MB / 0.5496 GB, free: 6.281 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.802e-05/0.4346, allocations: 32 kB / 0.5496 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-05/0.4347, allocations: 68 kB / 0.5497 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000416/0.4351, allocations: 202.6 kB / 0.5499 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/0.4369, allocations: 0.7252 MB / 0.5506 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.4391, allocations: 2.707 MB / 0.5532 GB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.4409, allocations: 171.2 kB / 0.5534 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/0.4411, allocations: 200 kB / 0.5536 GB, free: 2.059 MB / 382.1 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 (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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001394/0.4425, allocations: 1.434 MB / 0.555 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001958/0.4427, allocations: 181.7 kB / 0.5552 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002392/0.4451, allocations: 1.618 MB / 0.5567 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.383e-05/0.4452, allocations: 23.98 kB / 0.5568 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.4452, allocations: 0.75 kB / 0.5568 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.4453, allocations: 7.984 kB / 0.5568 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00761/0.4529, allocations: 4.864 MB / 0.5615 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.4529, allocations: 4 kB / 0.5615 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006313/0.4536, allocations: 155.8 kB / 0.5617 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003393/0.4539, allocations: 119.2 kB / 0.5618 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.456e-05/0.454, allocations: 27.92 kB / 0.5618 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002107/0.4561, allocations: 2.164 MB / 0.5639 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4561, allocations: 4 kB / 0.5639 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003574/0.4597, allocations: 2.549 MB / 0.5664 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000593/0.4603, allocations: 266.8 kB / 0.5667 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000233/0.4606, allocations: 20 kB / 0.5667 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006351/0.4612, allocations: 55.77 kB / 0.5667 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.4613, allocations: 75.03 kB / 0.5668 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.734e-05/0.4614, allocations: 32 kB / 0.5668 GB, free: 4.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00209/0.4635, allocations: 1.48 MB / 0.5683 GB, free: 2.648 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4635, allocations: 0 / 0.5683 GB, free: 2.648 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002679/0.4662, allocations: 0.5638 MB / 0.5688 GB, free: 2.09 MB / 398.1 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 (88): * Single equations (assignments): 83 * Array equations: 4 * 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 {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003877/0.4701, allocations: 3.173 MB / 0.5719 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004325/0.4744, allocations: 2.654 MB / 0.5745 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.4745, allocations: 8 kB / 0.5745 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.4756, allocations: 0.8183 MB / 0.5753 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.4775, allocations: 339 kB / 0.5757 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03491/0.5124, allocations: 23.55 MB / 0.5987 GB, free: 1.043 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003089/0.5155, allocations: 2.358 MB / 0.601 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002463/0.518, allocations: 1.039 MB / 0.602 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001636/0.5197, allocations: 1.097 MB / 0.603 GB, free: 12.52 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5197, allocations: 0 / 0.603 GB, free: 12.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07314/0.5928, allocations: 39.98 MB / 0.6421 GB, free: 4.754 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.86, allocations: 11.78 kB / 0.6421 GB, free: 4.742 MB / 478.1 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/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)