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.001348/0.001348, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001364/0.001364, allocations: 195.6 kB / 16.14 MB, free: 6.707 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.422/1.422, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1602/0.1602, allocations: 9.088 MB / 299 MB, free: 1.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.91 kB / 361.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09937/0.1005, allocations: 51.43 MB / 412.8 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.1879/0.2885, allocations: 31 MB / 443.8 MB, free: 26.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01237/0.3009, allocations: 6.816 MB / 450.6 MB, free: 21.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006353/0.3073, allocations: 115.8 kB / 450.7 MB, free: 21.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.3085, allocations: 318.7 kB / 451 MB, free: 21.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.3118, allocations: 1.288 MB / 452.3 MB, free: 21.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.3122, allocations: 132.7 kB / 452.4 MB, free: 21.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002635/0.3148, allocations: 3.477 MB / 455.9 MB, free: 19.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009829/0.3158, allocations: 0.906 MB / 456.8 MB, free: 19.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008413/0.3166, allocations: 0.7824 MB / 457.6 MB, free: 19.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.3178, allocations: 1.327 MB / 458.9 MB, free: 18.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002643/0.3181, allocations: 139.1 kB / 459.1 MB, free: 18.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00116/0.3193, allocations: 0.7739 MB / 459.8 MB, free: 18.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007569/0.32, allocations: 1.142 MB / 461 MB, free: 18.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008929/0.321, allocations: 1.497 MB / 462.5 MB, free: 17.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003205/0.3242, allocations: 4.689 MB / 467.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3242, allocations: 0 / 467.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3242, allocations: 0 / 467.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.569e-05/0.3243, allocations: 0 / 467.2 MB, free: 15.23 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.008973/0.3333, allocations: 4.28 MB / 471.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.3333, allocations: 10.88 kB / 471.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006764/0.334, allocations: 0.5433 MB / 472 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006552/0.3406, allocations: 1.77 MB / 473.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002648/0.3432, allocations: 1.335 MB / 475.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.3434, allocations: 148.6 kB / 475.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004913/0.3439, allocations: 199.2 kB / 475.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/0.3574, allocations: 8.195 MB / 483.6 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.048e-05/0.3575, allocations: 20.67 kB / 483.7 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002756/0.3578, allocations: 93.92 kB / 483.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003232/0.361, allocations: 1.914 MB / 485.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01376/0.3748, allocations: 7.429 MB / 493.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04052/0.4154, allocations: 24.91 MB / 0.5059 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005879/0.4213, allocations: 2.414 MB / 0.5082 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001525/0.4228, allocations: 0.8637 MB / 0.5091 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006793/0.4297, allocations: 4.432 MB / 0.5134 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.4297, allocations: 43.56 kB / 0.5134 GB, free: 2.465 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.577e-06/0.4297, allocations: 0 / 0.5134 GB, free: 2.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01079/0.4405, allocations: 4.648 MB / 0.518 GB, free: 13.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.4406, allocations: 68.41 kB / 0.518 GB, free: 13.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003791/0.4444, allocations: 2.484 MB / 0.5205 GB, free: 11.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.751e-05/0.4445, allocations: 49.7 kB / 0.5205 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001321/0.4458, allocations: 2.07 MB / 0.5225 GB, free: 9.059 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004546/0.4463, allocations: 0.5358 MB / 0.523 GB, free: 8.516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.4474, allocations: 0.7422 MB / 0.5238 GB, free: 7.766 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.937e-05/0.4475, allocations: 305.1 kB / 0.5241 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002123/0.4496, allocations: 1.241 MB / 0.5253 GB, free: 6.223 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003289/0.4529, allocations: 3.298 MB / 0.5285 GB, free: 1.914 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005551/0.4584, allocations: 4.889 MB / 0.5333 GB, free: 12.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.69e-05/0.4585, allocations: 24 kB / 0.5333 GB, free: 11.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.00878/0.4673, allocations: 4.639 MB / 0.5378 GB, free: 7.344 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.27e-05/0.4674, allocations: 36 kB / 0.5379 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.4675, allocations: 72 kB / 0.5379 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006611/0.4682, allocations: 234.2 kB / 0.5381 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002488/0.4707, allocations: 0.8266 MB / 0.539 GB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003004/0.4737, allocations: 2.623 MB / 0.5415 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002534/0.4763, allocations: 196 kB / 0.5417 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003159/0.4766, allocations: 224 kB / 0.5419 GB, free: 3.004 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.002398/0.479, allocations: 1.568 MB / 0.5434 GB, free: 1.418 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000332/0.4793, allocations: 213.1 kB / 0.5437 GB, free: 1.207 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003261/0.4826, allocations: 1.932 MB / 0.5455 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/0.4827, allocations: 43.86 kB / 0.5456 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.4827, allocations: 7.984 kB / 0.5456 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.4828, allocations: 3.984 kB / 0.5456 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.4932, allocations: 5.848 MB / 0.5513 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.4932, allocations: 4 kB / 0.5513 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008917/0.4941, allocations: 207.7 kB / 0.5515 GB, free: 9.016 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003896/0.4945, allocations: 141 kB / 0.5516 GB, free: 8.875 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.475e-05/0.4946, allocations: 35.98 kB / 0.5517 GB, free: 8.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00248/0.4971, allocations: 2.285 MB / 0.5539 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.4971, allocations: 4.469 kB / 0.5539 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004338/0.5015, allocations: 3.055 MB / 0.5569 GB, free: 3.293 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006484/0.5021, allocations: 290.4 kB / 0.5572 GB, free: 2.988 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004815/0.5026, allocations: 24 kB / 0.5572 GB, free: 2.965 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.5037, allocations: 71.84 kB / 0.5573 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.5039, allocations: 96.75 kB / 0.5574 GB, free: 2.797 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.875e-05/0.504, allocations: 48.05 kB / 0.5574 GB, free: 2.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003181/0.5072, allocations: 1.603 MB / 0.559 GB, free: 1.129 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5072, allocations: 0 / 0.559 GB, free: 1.129 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003291/0.5105, allocations: 0.6484 MB / 0.5596 GB, free: 492 kB / 430.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.00517/0.5157, allocations: 3.712 MB / 0.5632 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005268/0.521, allocations: 3.009 MB / 0.5662 GB, free: 9.695 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.521, allocations: 0 / 0.5662 GB, free: 9.695 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.5225, allocations: 1.009 MB / 0.5671 GB, free: 8.676 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002622/0.5252, allocations: 387.7 kB / 0.5675 GB, free: 8.305 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2027/0.7279, allocations: 30.21 MB / 0.597 GB, free: 113.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00217/0.7301, allocations: 2.593 MB / 0.5996 GB, free: 112 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002453/0.7325, allocations: 1.137 MB / 0.6007 GB, free: 111.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00131/0.7339, allocations: 1.304 MB / 0.6019 GB, free: 110.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7339, allocations: 3.25 kB / 0.6019 GB, free: 110.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06817/0.8021, allocations: 44.76 MB / 0.6457 GB, free: 89.78 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001346/0.8022, allocations: 214.7 kB / 0.6459 GB, free: 89.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.62/3.423, allocations: 0 / 0.6459 GB, free: 89.52 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)