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.0009149/0.0009149, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007043/0.007043, allocations: 169.1 kB / 16.26 MB, free: 6.328 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.26/1.26, allocations: 223.3 MB / 240.3 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1408/0.1408, allocations: 9.098 MB / 300.5 MB, free: 2.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002758, allocations: 8 kB / 363.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08925/0.08954, allocations: 52.42 MB / 416.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.1761/0.2657, allocations: 30.08 MB / 446.3 MB, free: 24.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.2765, allocations: 6.798 MB / 453.1 MB, free: 21.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003854/0.2804, allocations: 111.2 kB / 453.2 MB, free: 21.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000833/0.2812, allocations: 308.2 kB / 453.5 MB, free: 21.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002431/0.2837, allocations: 1.285 MB / 454.8 MB, free: 20.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.284, allocations: 139.8 kB / 454.9 MB, free: 20.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002358/0.2864, allocations: 3.471 MB / 458.4 MB, free: 19.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008752/0.2873, allocations: 0.8927 MB / 459.3 MB, free: 19.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007136/0.288, allocations: 0.7575 MB / 460.1 MB, free: 18.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.2891, allocations: 1.306 MB / 461.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002362/0.2894, allocations: 131 kB / 461.5 MB, free: 18.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009745/0.2904, allocations: 0.7646 MB / 462.3 MB, free: 18.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007013/0.2911, allocations: 1.14 MB / 463.4 MB, free: 17.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009755/0.2921, allocations: 1.517 MB / 464.9 MB, free: 16.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003211/0.2953, allocations: 4.572 MB / 469.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2953, allocations: 3.156 kB / 469.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2953, allocations: 4 kB / 469.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.684e-05/0.2954, allocations: 1.031 kB / 469.5 MB, free: 15.36 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.007/0.3024, allocations: 3.641 MB / 473.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3024, allocations: 9.25 kB / 473.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009078/0.3034, allocations: 0.5502 MB / 473.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006699/0.3101, allocations: 1.807 MB / 475.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002566/0.3127, allocations: 1.34 MB / 476.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.3128, allocations: 148.1 kB / 477 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005455/0.3134, allocations: 203.2 kB / 477.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/0.3258, allocations: 8.198 MB / 485.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.544e-05/0.3259, allocations: 16.47 kB / 485.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002967/0.3262, allocations: 93.02 kB / 485.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003041/0.3292, allocations: 1.921 MB / 487.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.3418, allocations: 7.442 MB / 494.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02999/0.3718, allocations: 24.92 MB / 0.5076 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004944/0.3768, allocations: 2.412 MB / 0.5099 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.3781, allocations: 0.8715 MB / 0.5108 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0054/0.3835, allocations: 4.446 MB / 0.5151 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.3836, allocations: 43.56 kB / 0.5152 GB, free: 2.785 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.426e-06/0.3836, allocations: 0 / 0.5152 GB, free: 2.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.009928/0.3935, allocations: 4.672 MB / 0.5197 GB, free: 14.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.3936, allocations: 60.41 kB / 0.5198 GB, free: 14.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003119/0.3967, allocations: 2.492 MB / 0.5222 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.788e-05/0.3968, allocations: 45.7 kB / 0.5223 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.398, allocations: 2.074 MB / 0.5243 GB, free: 9.355 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003967/0.3984, allocations: 0.532 MB / 0.5248 GB, free: 8.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003512/0.3988, allocations: 313.8 kB / 0.5251 GB, free: 8.504 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.724e-05/0.3988, allocations: 305.1 kB / 0.5254 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001878/0.4007, allocations: 1.245 MB / 0.5266 GB, free: 6.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003085/0.4038, allocations: 3.306 MB / 0.5299 GB, free: 2.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005218/0.4091, allocations: 4.911 MB / 0.5347 GB, free: 12.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.092e-05/0.4091, allocations: 20 kB / 0.5347 GB, free: 12.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.007639/0.4167, allocations: 4.643 MB / 0.5392 GB, free: 8.055 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.364e-05/0.4169, allocations: 36 kB / 0.5392 GB, free: 8.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.31e-05/0.4169, allocations: 72 kB / 0.5393 GB, free: 7.949 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005776/0.4175, allocations: 233.3 kB / 0.5395 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002483/0.42, allocations: 0.8344 MB / 0.5403 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002841/0.4229, allocations: 2.63 MB / 0.5429 GB, free: 4.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/0.4252, allocations: 195.8 kB / 0.5431 GB, free: 3.918 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002805/0.4255, allocations: 216 kB / 0.5433 GB, free: 3.707 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.002292/0.4278, allocations: 1.58 MB / 0.5449 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002667/0.4281, allocations: 209.2 kB / 0.5451 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003121/0.4312, allocations: 1.956 MB / 0.547 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/0.4313, allocations: 23.98 kB / 0.547 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4313, allocations: 4 kB / 0.547 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.4313, allocations: 7.969 kB / 0.547 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008445/0.4398, allocations: 5.859 MB / 0.5527 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.4398, allocations: 4 kB / 0.5527 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008236/0.4406, allocations: 215.7 kB / 0.5529 GB, free: 9.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003642/0.441, allocations: 137.8 kB / 0.5531 GB, free: 9.547 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.888e-05/0.4411, allocations: 28 kB / 0.5531 GB, free: 9.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/0.4434, allocations: 2.298 MB / 0.5553 GB, free: 7.086 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.4434, allocations: 4.469 kB / 0.5553 GB, free: 7.082 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004086/0.4475, allocations: 3.086 MB / 0.5583 GB, free: 3.93 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.448, allocations: 302.3 kB / 0.5586 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002092/0.4482, allocations: 28.06 kB / 0.5587 GB, free: 3.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007605/0.449, allocations: 71.91 kB / 0.5587 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.4491, allocations: 92.7 kB / 0.5588 GB, free: 3.422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.407e-05/0.4492, allocations: 43.98 kB / 0.5589 GB, free: 3.379 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002127/0.4514, allocations: 1.607 MB / 0.5604 GB, free: 1.754 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4514, allocations: 0 / 0.5604 GB, free: 1.754 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002466/0.4539, allocations: 0.6562 MB / 0.5611 GB, free: 1.098 MB / 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.00446/0.4583, allocations: 3.717 MB / 0.5647 GB, free: 13.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004458/0.4628, allocations: 3.021 MB / 0.5677 GB, free: 10.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4628, allocations: 0 / 0.5677 GB, free: 10.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001399/0.4642, allocations: 1.017 MB / 0.5686 GB, free: 9.266 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/0.4669, allocations: 368 kB / 0.569 GB, free: 8.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2032/0.6701, allocations: 30.31 MB / 0.5986 GB, free: 90.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002035/0.6722, allocations: 2.596 MB / 0.6011 GB, free: 89.47 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002338/0.6746, allocations: 1.139 MB / 0.6022 GB, free: 89.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001231/0.6758, allocations: 1.305 MB / 0.6035 GB, free: 88.31 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.6758, allocations: 0 / 0.6035 GB, free: 88.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05921/0.735, allocations: 44.38 MB / 0.6469 GB, free: 65.86 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001522/0.7352, allocations: 210.6 kB / 0.6471 GB, free: 65.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.313, allocations: 64 / 0.6471 GB, free: 65.61 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)