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.001224/0.001224, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001695/0.001695, allocations: 193.5 kB / 16.25 MB, free: 6.621 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.348/1.348, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1662/0.1662, allocations: 9.096 MB / 299.2 MB, free: 1.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 55.91 kB / 361.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09606/0.09727, allocations: 51.43 MB / 413 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.2128/0.3101, allocations: 30.99 MB / 444 MB, free: 26.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01295/0.3231, allocations: 6.79 MB / 450.7 MB, free: 21.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006231/0.3294, allocations: 116.2 kB / 450.9 MB, free: 21.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001226/0.3306, allocations: 307.7 kB / 451.2 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003303/0.334, allocations: 1.286 MB / 452.4 MB, free: 21.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003741/0.3344, allocations: 137.6 kB / 452.6 MB, free: 21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002383/0.3368, allocations: 2.524 MB / 455.1 MB, free: 19.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.3378, allocations: 1.028 MB / 456.1 MB, free: 19.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009391/0.3388, allocations: 0.9187 MB / 457 MB, free: 19.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.34, allocations: 1.419 MB / 458.5 MB, free: 18.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002687/0.3403, allocations: 242.4 kB / 458.7 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001141/0.3415, allocations: 0.8454 MB / 459.5 MB, free: 18.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00078/0.3423, allocations: 1.235 MB / 460.8 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009963/0.3433, allocations: 1.598 MB / 462.4 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003761/0.347, allocations: 4.852 MB / 467.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.347, allocations: 0 / 467.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3471, allocations: 0 / 467.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.97e-05/0.3471, allocations: 4 kB / 467.2 MB, free: 14.74 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.008859/0.356, allocations: 4.278 MB / 471.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.3561, allocations: 9.219 kB / 471.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006925/0.3568, allocations: 0.5483 MB / 472.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006279/0.3631, allocations: 1.761 MB / 473.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002418/0.3655, allocations: 1.342 MB / 475.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.3656, allocations: 145.6 kB / 475.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004297/0.3661, allocations: 195.8 kB / 475.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01642/0.3825, allocations: 8.191 MB / 483.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-05/0.3826, allocations: 28.72 kB / 483.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003292/0.383, allocations: 93.17 kB / 483.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00337/0.3863, allocations: 1.918 MB / 485.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/0.402, allocations: 7.422 MB / 493.2 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03797/0.44, allocations: 24.92 MB / 0.5059 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005437/0.4455, allocations: 2.408 MB / 0.5083 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001287/0.4468, allocations: 0.8637 MB / 0.5091 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006089/0.4529, allocations: 4.432 MB / 0.5135 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/0.453, allocations: 47.55 kB / 0.5135 GB, free: 2.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.466e-06/0.453, allocations: 0 / 0.5135 GB, free: 2.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01172/0.4648, allocations: 4.652 MB / 0.518 GB, free: 13.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.4649, allocations: 60.41 kB / 0.5181 GB, free: 13.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005067/0.4699, allocations: 2.488 MB / 0.5205 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.4701, allocations: 41.7 kB / 0.5206 GB, free: 11.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/0.4717, allocations: 2.078 MB / 0.5226 GB, free: 9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007322/0.4724, allocations: 0.532 MB / 0.5231 GB, free: 8.461 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001378/0.4738, allocations: 0.75 MB / 0.5239 GB, free: 7.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.474, allocations: 305.1 kB / 0.5241 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002227/0.4762, allocations: 1.241 MB / 0.5254 GB, free: 6.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003756/0.48, allocations: 3.302 MB / 0.5286 GB, free: 1.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005663/0.4856, allocations: 4.88 MB / 0.5333 GB, free: 11.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-05/0.4857, allocations: 23.94 kB / 0.5334 GB, free: 11.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.008621/0.4944, allocations: 4.642 MB / 0.5379 GB, free: 7.285 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.723e-05/0.4945, allocations: 36 kB / 0.5379 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/0.4946, allocations: 72 kB / 0.538 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006197/0.4952, allocations: 238.2 kB / 0.5382 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/0.4981, allocations: 0.8188 MB / 0.539 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003161/0.5013, allocations: 2.862 MB / 0.5418 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002612/0.5039, allocations: 191.9 kB / 0.542 GB, free: 2.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004256/0.5043, allocations: 224 kB / 0.5422 GB, free: 2.711 MB / 414.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.002555/0.5069, allocations: 1.572 MB / 0.5438 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003885/0.5073, allocations: 209.3 kB / 0.544 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003404/0.5107, allocations: 1.936 MB / 0.5459 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001059/0.5108, allocations: 27.98 kB / 0.5459 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.5108, allocations: 7.938 kB / 0.5459 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.5109, allocations: 7.969 kB / 0.5459 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009213/0.5201, allocations: 5.844 MB / 0.5516 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.5201, allocations: 7.984 kB / 0.5516 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008808/0.521, allocations: 211.7 kB / 0.5518 GB, free: 8.719 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003704/0.5214, allocations: 144.7 kB / 0.5519 GB, free: 8.574 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.952e-05/0.5215, allocations: 31.98 kB / 0.552 GB, free: 8.543 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002589/0.5241, allocations: 2.511 MB / 0.5544 GB, free: 5.895 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.5241, allocations: 8.531 kB / 0.5544 GB, free: 5.887 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004419/0.5285, allocations: 3.059 MB / 0.5574 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000737/0.5293, allocations: 290.3 kB / 0.5577 GB, free: 2.457 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000266/0.5296, allocations: 35.97 kB / 0.5577 GB, free: 2.422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007757/0.5303, allocations: 67.98 kB / 0.5578 GB, free: 2.355 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.5306, allocations: 96.8 kB / 0.5579 GB, free: 2.258 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-05/0.5307, allocations: 47.92 kB / 0.5579 GB, free: 2.211 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002271/0.5329, allocations: 1.6 MB / 0.5595 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5329, allocations: 0 / 0.5595 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00283/0.5358, allocations: 0.664 MB / 0.5601 GB, free: 15.93 MB / 446.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.004607/0.5404, allocations: 3.689 MB / 0.5638 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006748/0.5472, allocations: 4.134 MB / 0.5678 GB, free: 8.043 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.5472, allocations: 4 kB / 0.5678 GB, free: 8.039 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.5487, allocations: 1.001 MB / 0.5688 GB, free: 7.023 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002131/0.5508, allocations: 405.9 kB / 0.5692 GB, free: 6.648 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2087/0.7596, allocations: 30.21 MB / 0.5987 GB, free: 112.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002189/0.7618, allocations: 2.587 MB / 0.6012 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002508/0.7643, allocations: 1.139 MB / 0.6023 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001399/0.7657, allocations: 1.308 MB / 0.6036 GB, free: 110.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.713e-06/0.7657, allocations: 0 / 0.6036 GB, free: 110.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07327/0.839, allocations: 45.63 MB / 0.6481 GB, free: 87.64 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/0.8392, allocations: 214.2 kB / 0.6483 GB, free: 87.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.975/3.814, allocations: 0 / 0.6483 GB, free: 87.39 MB / 446.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)