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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 221.5 MB / 229.6 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008907/0.0008906, allocations: 101.9 kB / 280.5 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03755/0.03755, allocations: 8.829 MB / 340.1 MB, free: 6.395 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.104e-05/2.105e-05, allocations: 3.141 kB / 398.8 MB, free: 47.63 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 52.39 MB / 451.2 MB, free: 4.434 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4065/0.5113, allocations: 94.99 MB / 0.5334 GB, free: 23.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/0.5116, allocations: 75.36 kB / 0.5334 GB, free: 23.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.248/0.7596, allocations: 108 MB / 0.6389 GB, free: 9.535 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.7596, allocations: 0 / 0.6389 GB, free: 9.535 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002052/0.7598, allocations: 92 kB / 0.639 GB, free: 9.445 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2108 * Number of variables: 2108 Notification: Performance of Generate backend data structure: time 0.01855/0.7784, allocations: 4.929 MB / 0.6438 GB, free: 4.461 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.7785, allocations: 16.02 kB / 0.6439 GB, free: 4.445 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01834/0.7968, allocations: 3.736 MB / 0.6475 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008748/0.8056, allocations: 2.917 MB / 0.6504 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003961/0.8061, allocations: 172 kB / 0.6505 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003299/0.8094, allocations: 296 kB / 0.6508 GB, free: 13.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01941/0.8288, allocations: 9.549 MB / 0.6601 GB, free: 3.723 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03528/0.8641, allocations: 13.42 MB / 0.6732 GB, free: 5.172 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002485/0.8644, allocations: 67.38 kB / 0.6733 GB, free: 5.105 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00202/0.8665, allocations: 32 kB / 0.6733 GB, free: 5.074 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002508/0.869, allocations: 1.634 MB / 0.6749 GB, free: 3.441 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3564/1.225, allocations: 55.51 MB / 0.7291 GB, free: 66.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005589/1.231, allocations: 4.187 MB / 0.7332 GB, free: 65.23 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/1.233, allocations: 1.307 MB / 0.7345 GB, free: 65.19 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009885/1.243, allocations: 5.653 MB / 0.74 GB, free: 62.98 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/1.243, allocations: 60.02 kB / 0.7401 GB, free: 62.95 MB / 458.7 MB Notification: Performance of pre-optimization done (n=205): time 4.809e-06/1.243, allocations: 3.969 kB / 0.7401 GB, free: 62.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=219): time 0.01311/1.256, allocations: 7.627 MB / 0.7475 GB, free: 59.96 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/1.256, allocations: 148 kB / 0.7477 GB, free: 59.81 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005549/1.262, allocations: 3.87 MB / 0.7515 GB, free: 59.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003832/1.262, allocations: 29.3 kB / 0.7515 GB, free: 59.37 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00212/1.264, allocations: 4.179 MB / 0.7556 GB, free: 56.94 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001004/1.265, allocations: 0.8409 MB / 0.7564 GB, free: 56.46 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003616/1.266, allocations: 7.312 kB / 0.7564 GB, free: 56.46 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003618/1.266, allocations: 0.6639 MB / 0.757 GB, free: 56.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00311/1.269, allocations: 2.342 MB / 0.7593 GB, free: 56.12 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005806/1.275, allocations: 7.486 MB / 0.7666 GB, free: 49.39 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006796/1.282, allocations: 4.294 MB / 0.7708 GB, free: 49.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002183/1.282, allocations: 58.12 kB / 0.7709 GB, free: 49.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=1085) (initialization): time 0.01896/1.301, allocations: 8.739 MB / 0.7794 GB, free: 47.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001145/1.301, allocations: 84.03 kB / 0.7795 GB, free: 47.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002009/1.301, allocations: 185.2 kB / 0.7797 GB, free: 47.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006908/1.302, allocations: 405.5 kB / 0.7801 GB, free: 47.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006162/1.308, allocations: 1.903 MB / 0.7819 GB, free: 46.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00266/1.311, allocations: 2.757 MB / 0.7846 GB, free: 45.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006214/1.317, allocations: 272.1 kB / 0.7849 GB, free: 45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001847/1.319, allocations: 0.5053 MB / 0.7854 GB, free: 44.94 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 846 * Number of states: 0 () * Number of discrete variables: 29 (worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],cutForce.world.gravityArrowColor[3],cutForce.world.gravityArrowColor[2],cutForce.world.gravityArrowColor[1],cutForce.world.axisColor_x[3],cutForce.world.axisColor_x[2],cutForce.world.axisColor_x[1],cutForce.world.groundColor[3],cutForce.world.groundColor[2],cutForce.world.groundColor[1],cutForce.world.gravitySphereColor[3],cutForce.world.gravitySphereColor[2],cutForce.world.gravitySphereColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1023): * Single equations (assignments): 1015 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002694/1.322, allocations: 0.5436 MB / 0.7859 GB, free: 44.48 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005496/1.327, allocations: 2.535 MB / 0.7884 GB, free: 43.53 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009807/1.328, allocations: 370 kB / 0.7887 GB, free: 43.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004533/1.333, allocations: 2.205 MB / 0.7909 GB, free: 42.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001513/1.333, allocations: 41.44 kB / 0.7909 GB, free: 42.51 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/1.333, allocations: 7.453 kB / 0.7909 GB, free: 42.51 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-05/1.333, allocations: 12.62 kB / 0.7909 GB, free: 42.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0152/1.348, allocations: 6.687 MB / 0.7975 GB, free: 39.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-05/1.348, allocations: 3.312 kB / 0.7975 GB, free: 39.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/1.35, allocations: 310.9 kB / 0.7978 GB, free: 39.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003822/1.35, allocations: 137.2 kB / 0.7979 GB, free: 39.92 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002484/1.35, allocations: 13.92 kB / 0.7979 GB, free: 39.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/1.353, allocations: 2.184 MB / 0.8 GB, free: 38.29 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/1.353, allocations: 7.062 kB / 0.8001 GB, free: 38.29 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006092/1.359, allocations: 4.88 MB / 0.8048 GB, free: 34.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/1.36, allocations: 438.4 kB / 0.8052 GB, free: 34.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009836/1.361, allocations: 4 kB / 0.8052 GB, free: 34.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/1.363, allocations: 76.69 kB / 0.8053 GB, free: 34.47 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002985/1.363, allocations: 119.3 kB / 0.8054 GB, free: 34.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/1.364, allocations: 65.17 kB / 0.8055 GB, free: 34.33 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005519/1.369, allocations: 2.542 MB / 0.808 GB, free: 32.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.369, allocations: 0 / 0.808 GB, free: 32.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008486/1.378, allocations: 1.003 MB / 0.809 GB, free: 31.1 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 151 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00718/1.385, allocations: 6.158 MB / 0.815 GB, free: 25.32 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008214/1.393, allocations: 5.39 MB / 0.8202 GB, free: 20.42 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/1.393, allocations: 0 / 0.8202 GB, free: 20.42 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001936/1.395, allocations: 1.374 MB / 0.8216 GB, free: 19.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/1.398, allocations: 343.2 kB / 0.8219 GB, free: 18.86 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03318/1.431, allocations: 10.86 MB / 0.8325 GB, free: 9.367 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007357/1.438, allocations: 4.233 MB / 0.8366 GB, free: 6.133 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00748/1.446, allocations: 2.517 MB / 0.8391 GB, free: 4.578 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005199/1.451, allocations: 2.463 MB / 0.8415 GB, free: 2.293 MB / 458.7 MB Notification: Performance of SimCode: time 1.032e-06/1.451, allocations: 0 / 0.8415 GB, free: 2.293 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4695/1.92, allocations: 82.34 MB / 0.9219 GB, free: 98.89 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/1.921, allocations: 134.1 kB / 0.922 GB, free: 98.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.516/6.437, allocations: 3.594 kB / 0.922 GB, free: 98.7 MB / 474.7 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/linux/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)