Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",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.001396/0.001396, allocations: 173.9 kB / 7.648 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.371/1.371, allocations: 221.5 MB / 229.6 MB, free: 7.523 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.0009594/0.0009597, allocations: 85.55 kB / 280.5 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03749/0.03749, allocations: 8.84 MB / 340.1 MB, free: 6.395 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.121e-05/2.139e-05, allocations: 6.406 kB / 398.8 MB, free: 47.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 52.39 MB / 451.2 MB, free: 4.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4735/0.5852, allocations: 85.32 MB / 0.5239 GB, free: 26.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.5855, allocations: 73.67 kB / 0.524 GB, free: 26.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1455/0.731, allocations: 61.71 MB / 0.5843 GB, free: 12.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.7311, allocations: 0 / 0.5843 GB, free: 12.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.567e-05/0.7312, allocations: 54.81 kB / 0.5843 GB, free: 12.23 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01167/0.7429, allocations: 3.259 MB / 0.5875 GB, free: 10.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.7429, allocations: 11.73 kB / 0.5875 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009263/0.7522, allocations: 1.926 MB / 0.5894 GB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005278/0.7575, allocations: 1.702 MB / 0.591 GB, free: 8.684 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.7577, allocations: 98.16 kB / 0.5911 GB, free: 8.684 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001664/0.7594, allocations: 167.7 kB / 0.5913 GB, free: 8.684 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009445/0.7688, allocations: 5.417 MB / 0.5966 GB, free: 6.875 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/0.7842, allocations: 7.205 MB / 0.6036 GB, free: 428 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001435/0.7844, allocations: 23.78 kB / 0.6036 GB, free: 404 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001082/0.7855, allocations: 12 kB / 0.6037 GB, free: 392 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001495/0.787, allocations: 0.9272 MB / 0.6046 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04167/0.8287, allocations: 25.1 MB / 0.6291 GB, free: 5.734 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003351/0.8321, allocations: 2.304 MB / 0.6313 GB, free: 3.305 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/0.8333, allocations: 0.8062 MB / 0.6321 GB, free: 2.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006802/0.8401, allocations: 4.286 MB / 0.6363 GB, free: 13.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/0.8401, allocations: 43.88 kB / 0.6363 GB, free: 13.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=142): time 3.997e-06/0.8402, allocations: 0 / 0.6363 GB, free: 13.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=170): time 0.01053/0.8507, allocations: 4.15 MB / 0.6404 GB, free: 9.609 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.8508, allocations: 68.72 kB / 0.6405 GB, free: 9.531 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003176/0.854, allocations: 1.924 MB / 0.6423 GB, free: 7.566 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.8541, allocations: 25.7 kB / 0.6424 GB, free: 7.535 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001313/0.8554, allocations: 2.177 MB / 0.6445 GB, free: 5.324 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005805/0.856, allocations: 0.6127 MB / 0.6451 GB, free: 4.703 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.8562, allocations: 4 kB / 0.6451 GB, free: 4.699 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003558/0.8565, allocations: 0.5278 MB / 0.6456 GB, free: 4.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001979/0.8585, allocations: 1.293 MB / 0.6469 GB, free: 2.859 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003688/0.8622, allocations: 3.66 MB / 0.6504 GB, free: 14.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00328/0.8655, allocations: 2.234 MB / 0.6526 GB, free: 11.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.57e-05/0.8656, allocations: 27.94 kB / 0.6527 GB, free: 11.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.00841/0.874, allocations: 4.789 MB / 0.6573 GB, free: 6.957 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.836e-05/0.8741, allocations: 40 kB / 0.6574 GB, free: 6.918 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.186e-05/0.8742, allocations: 84 kB / 0.6574 GB, free: 6.836 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008812/0.8751, allocations: 369.3 kB / 0.6578 GB, free: 6.477 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003601/0.8787, allocations: 0.9594 MB / 0.6587 GB, free: 5.516 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005468/0.8842, allocations: 3.701 MB / 0.6623 GB, free: 1.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003463/0.8877, allocations: 131.9 kB / 0.6625 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005235/0.8882, allocations: 260 kB / 0.6627 GB, free: 1.312 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 382 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (522): * Single equations (assignments): 517 * 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 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005992/0.8889, allocations: 319.3 kB / 0.663 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003177/0.892, allocations: 1.889 MB / 0.6649 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000283/0.8923, allocations: 197.5 kB / 0.6651 GB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003535/0.8959, allocations: 2.074 MB / 0.6671 GB, free: 12.81 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/0.896, allocations: 27.98 kB / 0.6671 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.896, allocations: 7.984 kB / 0.6671 GB, free: 12.78 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.896, allocations: 3.984 kB / 0.6671 GB, free: 12.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00977/0.9058, allocations: 5.245 MB / 0.6722 GB, free: 7.426 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.9059, allocations: 0 / 0.6722 GB, free: 7.426 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008953/0.9068, allocations: 235.9 kB / 0.6725 GB, free: 7.195 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006513/0.9074, allocations: 252.5 kB / 0.6727 GB, free: 6.945 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.669e-05/0.9075, allocations: 11.98 kB / 0.6727 GB, free: 6.934 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003687/0.9112, allocations: 3.002 MB / 0.6757 GB, free: 3.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.9113, allocations: 0 / 0.6757 GB, free: 3.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00477/0.916, allocations: 3.4 MB / 0.679 GB, free: 288 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007603/0.9168, allocations: 286.7 kB / 0.6792 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/0.9171, allocations: 4 kB / 0.6793 GB, free: 15.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000789/0.9179, allocations: 59.67 kB / 0.6793 GB, free: 15.92 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.9181, allocations: 93.12 kB / 0.6794 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.9182, allocations: 47.98 kB / 0.6794 GB, free: 15.78 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002373/0.9206, allocations: 1.293 MB / 0.6807 GB, free: 14.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9206, allocations: 0 / 0.6807 GB, free: 14.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003773/0.9243, allocations: 0.621 MB / 0.6813 GB, free: 13.84 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * 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 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005487/0.9299, allocations: 4.609 MB / 0.6858 GB, free: 9.137 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005861/0.9357, allocations: 3.171 MB / 0.6889 GB, free: 5.977 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.9358, allocations: 256 / 0.6889 GB, free: 5.977 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.9374, allocations: 1.051 MB / 0.6899 GB, free: 4.918 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.9389, allocations: 205.6 kB / 0.6901 GB, free: 4.715 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2571/1.196, allocations: 6.282 MB / 0.6963 GB, free: 129.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003479/1.2, allocations: 2.678 MB / 0.6989 GB, free: 128.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003637/1.203, allocations: 1.265 MB / 0.7001 GB, free: 128.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002656/1.206, allocations: 1.348 MB / 0.7014 GB, free: 128.6 MB / 458.7 MB Notification: Performance of SimCode: time 3.106e-06/1.206, allocations: 3.406 kB / 0.7014 GB, free: 128.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08878/1.295, allocations: 47.92 MB / 0.7482 GB, free: 112.2 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/1.295, allocations: 133 kB / 0.7484 GB, free: 112 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.25/4.545, allocations: 0 / 0.7484 GB, free: 112 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_DoublePendulum_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)