Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",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.001048/0.001049, allocations: 173.9 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 221.4 MB / 234.6 MB, free: 14.46 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008098/0.00081, allocations: 74.28 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.05174/0.05174, allocations: 8.834 MB / 345.3 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.398e-05/3.4e-05, allocations: 4 kB / 405.7 MB, free: 61.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 52.39 MB / 458.1 MB, free: 8.953 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3918/0.4986, allocations: 86.03 MB / 0.5313 GB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.4989, allocations: 70.34 kB / 0.5314 GB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1377/0.6366, allocations: 54.55 MB / 0.5847 GB, free: 15.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6367, allocations: 0 / 0.5847 GB, free: 15.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.337e-05/0.6368, allocations: 47.98 kB / 0.5847 GB, free: 15.18 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.009667/0.6464, allocations: 2.616 MB / 0.5873 GB, free: 12.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.39e-05/0.6465, allocations: 8.031 kB / 0.5873 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002592/0.6491, allocations: 0.5117 MB / 0.5878 GB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00948/0.6586, allocations: 1.88 MB / 0.5896 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004538/0.6632, allocations: 1.521 MB / 0.5911 GB, free: 8.527 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002306/0.6635, allocations: 192.9 kB / 0.5913 GB, free: 8.336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001581/0.6651, allocations: 255.8 kB / 0.5915 GB, free: 8.086 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01616/0.6813, allocations: 6.746 MB / 0.5981 GB, free: 1.039 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.378e-05/0.6814, allocations: 11.88 kB / 0.5981 GB, free: 1.027 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004738/0.6819, allocations: 119.9 kB / 0.5982 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001223/0.6831, allocations: 0.7938 MB / 0.599 GB, free: 116 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01302/0.6962, allocations: 6.378 MB / 0.6052 GB, free: 9.719 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03555/0.7318, allocations: 21.18 MB / 0.6259 GB, free: 4.121 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004204/0.736, allocations: 1.978 MB / 0.6279 GB, free: 2.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001084/0.7372, allocations: 0.6491 MB / 0.6285 GB, free: 1.371 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006002/0.7432, allocations: 3.286 MB / 0.6317 GB, free: 13.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.7433, allocations: 39.33 kB / 0.6317 GB, free: 13.76 MB / 458.7 MB Notification: Performance of pre-optimization done (n=106): time 4.318e-06/0.7433, allocations: 4 kB / 0.6317 GB, free: 13.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=120): time 0.01024/0.7535, allocations: 4.903 MB / 0.6365 GB, free: 8.754 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.7536, allocations: 60.19 kB / 0.6366 GB, free: 8.684 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003213/0.7568, allocations: 2.018 MB / 0.6386 GB, free: 6.617 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.689e-05/0.7569, allocations: 45.7 kB / 0.6386 GB, free: 6.566 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001298/0.7582, allocations: 1.821 MB / 0.6404 GB, free: 4.715 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004202/0.7587, allocations: 457.9 kB / 0.6408 GB, free: 4.262 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.7588, allocations: 67.98 kB / 0.6409 GB, free: 4.195 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002586/0.7591, allocations: 449 kB / 0.6413 GB, free: 3.75 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.7607, allocations: 1.041 MB / 0.6423 GB, free: 2.707 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3052/1.066, allocations: 2.888 MB / 0.6451 GB, free: 127 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003733/1.07, allocations: 1.777 MB / 0.6469 GB, free: 127 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.941e-05/1.07, allocations: 19.41 kB / 0.6469 GB, free: 127 MB / 458.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.0089/1.079, allocations: 4.01 MB / 0.6508 GB, free: 126.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.868e-05/1.079, allocations: 33.48 kB / 0.6508 GB, free: 126.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/1.079, allocations: 68.94 kB / 0.6509 GB, free: 126.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006587/1.08, allocations: 217.7 kB / 0.6511 GB, free: 126.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002827/1.083, allocations: 0.7261 MB / 0.6518 GB, free: 126.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003451/1.086, allocations: 2.457 MB / 0.6542 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002819/1.089, allocations: 167.5 kB / 0.6544 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006624/1.09, allocations: 198.9 kB / 0.6546 GB, free: 125.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (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 (395): * Single equations (assignments): 390 * Array equations: 4 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005923/1.09, allocations: 346.1 kB / 0.6549 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003313/1.09, allocations: 187.6 kB / 0.6551 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003012/1.093, allocations: 1.555 MB / 0.6566 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001215/1.094, allocations: 24 kB / 0.6566 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/1.094, allocations: 1.375 kB / 0.6566 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/1.094, allocations: 8.703 kB / 0.6566 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009885/1.104, allocations: 4.817 MB / 0.6613 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/1.104, allocations: 2.562 kB / 0.6613 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006958/1.104, allocations: 162.9 kB / 0.6615 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003763/1.105, allocations: 114.6 kB / 0.6616 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.337e-05/1.105, allocations: 25.95 kB / 0.6616 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/1.107, allocations: 1.984 MB / 0.6636 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.107, allocations: 3.469 kB / 0.6636 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003227/1.11, allocations: 2.639 MB / 0.6662 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008203/1.111, allocations: 279.8 kB / 0.6664 GB, free: 122.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/1.111, allocations: 26.94 kB / 0.6664 GB, free: 122.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007021/1.112, allocations: 51.19 kB / 0.6665 GB, free: 122.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/1.112, allocations: 61.36 kB / 0.6666 GB, free: 122.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-05/1.112, allocations: 44.22 kB / 0.6666 GB, free: 122.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002332/1.115, allocations: 1.43 MB / 0.668 GB, free: 122.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.115, allocations: 6.953 kB / 0.668 GB, free: 122.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003595/1.118, allocations: 0.5756 MB / 0.6686 GB, free: 122.3 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 (87): * Single equations (assignments): 82 * Array equations: 4 * 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%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004217/1.122, allocations: 3.994 MB / 0.6725 GB, free: 120.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004512/1.127, allocations: 2.543 MB / 0.6749 GB, free: 119.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.127, allocations: 0 / 0.6749 GB, free: 119.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/1.128, allocations: 0.7934 MB / 0.6757 GB, free: 118.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/1.13, allocations: 297.2 kB / 0.676 GB, free: 118.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/1.144, allocations: 5.387 MB / 0.6813 GB, free: 116.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002196/1.146, allocations: 2.407 MB / 0.6836 GB, free: 115.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00271/1.149, allocations: 1.042 MB / 0.6846 GB, free: 115.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/1.15, allocations: 1.105 MB / 0.6857 GB, free: 114.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.332e-06/1.15, allocations: 0 / 0.6857 GB, free: 114.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0723/1.222, allocations: 45.09 MB / 0.7297 GB, free: 85.86 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/1.223, allocations: 154.1 kB / 0.7299 GB, free: 85.64 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.555/4.778, allocations: 4.062 kB / 0.7299 GB, free: 85.64 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_Pendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)