Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",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.001172/0.001172, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 194.5 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.235/2.235, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2216/0.2216, allocations: 9.103 MB / 299.5 MB, free: 1.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 59.91 kB / 362 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.103, allocations: 51.44 MB / 413.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01045/0.1135, allocations: 8.522 MB / 422 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2124/0.326, allocations: 2.587 MB / 424.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.3272, allocations: 35.78 kB / 424.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008535/0.3281, allocations: 366.6 kB / 425 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003048/0.3312, allocations: 1.374 MB / 426.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.3316, allocations: 157.4 kB / 426.5 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00248/0.3341, allocations: 2.514 MB / 429 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001273/0.3354, allocations: 1.01 MB / 430 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001333/0.3367, allocations: 0.9193 MB / 431 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.3383, allocations: 1.32 MB / 432.3 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003596/0.3386, allocations: 237.1 kB / 432.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.3401, allocations: 0.8381 MB / 433.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008377/0.3409, allocations: 1.217 MB / 434.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001182/0.3421, allocations: 1.592 MB / 436.2 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003975/0.3461, allocations: 4.827 MB / 441 MB, free: 31.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3461, allocations: 0 / 441 MB, free: 31.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3461, allocations: 0 / 441 MB, free: 31.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.177e-05/0.3462, allocations: 0 / 441 MB, free: 31.48 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: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.008834/0.3551, allocations: 4.279 MB / 445.3 MB, free: 29.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.3551, allocations: 8.906 kB / 445.3 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005471/0.3557, allocations: 0.5526 MB / 445.8 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005917/0.3616, allocations: 1.755 MB / 447.6 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002298/0.3639, allocations: 1.344 MB / 448.9 MB, free: 28.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.52e-05/0.364, allocations: 153.1 kB / 449.1 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003568/0.3644, allocations: 198.2 kB / 449.3 MB, free: 28.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0105/0.3749, allocations: 8.189 MB / 457.5 MB, free: 24.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.469e-05/0.375, allocations: 19.97 kB / 457.5 MB, free: 24.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002976/0.3753, allocations: 95.31 kB / 457.6 MB, free: 24.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003117/0.3784, allocations: 1.922 MB / 459.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01773/0.3962, allocations: 7.425 MB / 466.9 MB, free: 21.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03584/0.432, allocations: 24.89 MB / 491.8 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004652/0.4367, allocations: 2.415 MB / 494.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001141/0.4379, allocations: 0.8772 MB / 495.1 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00604/0.4439, allocations: 4.432 MB / 499.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.444, allocations: 39.56 kB / 499.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=130): time 3.066e-06/0.444, allocations: 0 / 499.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01154/0.4556, allocations: 4.664 MB / 0.4924 GB, free: 6.879 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.4556, allocations: 60.41 kB / 0.4925 GB, free: 6.809 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004336/0.46, allocations: 2.488 MB / 0.4949 GB, free: 4.285 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001749/0.4602, allocations: 41.7 kB / 0.4949 GB, free: 4.238 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001691/0.4619, allocations: 2.072 MB / 0.497 GB, free: 2.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006964/0.4626, allocations: 0.539 MB / 0.4975 GB, free: 1.625 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001633/0.4642, allocations: 0.7485 MB / 0.4982 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.4644, allocations: 301.1 kB / 0.4985 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002359/0.4668, allocations: 1.237 MB / 0.4997 GB, free: 15.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003725/0.4705, allocations: 3.302 MB / 0.5029 GB, free: 11.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007466/0.478, allocations: 4.887 MB / 0.5077 GB, free: 5.125 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001388/0.4782, allocations: 20 kB / 0.5077 GB, free: 5.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01039/0.4886, allocations: 4.624 MB / 0.5123 GB, free: 484 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.67e-05/0.4887, allocations: 39.98 kB / 0.5123 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001228/0.4888, allocations: 76.12 kB / 0.5124 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006654/0.4895, allocations: 230.4 kB / 0.5126 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002699/0.4922, allocations: 0.8266 MB / 0.5134 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/0.4956, allocations: 2.866 MB / 0.5162 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00304/0.4987, allocations: 187.8 kB / 0.5164 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005181/0.4992, allocations: 224 kB / 0.5166 GB, free: 11.89 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],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 (445): * Single equations (assignments): 440 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003163/0.5024, allocations: 1.583 MB / 0.5181 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004485/0.5028, allocations: 213.2 kB / 0.5183 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003621/0.5065, allocations: 1.932 MB / 0.5202 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/0.5066, allocations: 27.98 kB / 0.5202 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.5066, allocations: 3.938 kB / 0.5202 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.5066, allocations: 7.969 kB / 0.5203 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01242/0.519, allocations: 5.84 MB / 0.526 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/0.5191, allocations: 4 kB / 0.526 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008992/0.52, allocations: 219.7 kB / 0.5262 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004091/0.5204, allocations: 145 kB / 0.5263 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.5206, allocations: 28 kB / 0.5263 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002881/0.5235, allocations: 2.518 MB / 0.5288 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.5235, allocations: 4 kB / 0.5288 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00464/0.5281, allocations: 3.051 MB / 0.5318 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006612/0.5288, allocations: 290.3 kB / 0.5321 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005097/0.5293, allocations: 38.02 kB / 0.5321 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.5303, allocations: 63.92 kB / 0.5322 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.5306, allocations: 92.75 kB / 0.5322 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.905e-05/0.5307, allocations: 40 kB / 0.5323 GB, free: 11.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00274/0.5334, allocations: 1.607 MB / 0.5338 GB, free: 9.832 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5334, allocations: 3.938 kB / 0.5339 GB, free: 9.828 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003258/0.5367, allocations: 0.6508 MB / 0.5345 GB, free: 9.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (109): * Single equations (assignments): 104 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005063/0.5418, allocations: 3.7 MB / 0.5381 GB, free: 5.402 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007466/0.5493, allocations: 4.134 MB / 0.5421 GB, free: 1.285 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5493, allocations: 192 / 0.5421 GB, free: 1.285 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.5507, allocations: 1.013 MB / 0.5431 GB, free: 264 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/0.5535, allocations: 406.1 kB / 0.5435 GB, free: 15.9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04505/0.5985, allocations: 28.73 MB / 0.5716 GB, free: 15.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003165/0.6017, allocations: 2.594 MB / 0.5741 GB, free: 12.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002708/0.6044, allocations: 1.133 MB / 0.5752 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/0.6063, allocations: 1.3 MB / 0.5765 GB, free: 10.45 MB / 462.1 MB Notification: Performance of SimCode: time 1.173e-06/0.6064, allocations: 4 kB / 0.5765 GB, free: 10.45 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3602/0.9665, allocations: 45.8 MB / 0.6212 GB, free: 136.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/12.12, allocations: 7.328 kB / 0.6212 GB, free: 136.4 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PendulumExcited_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)