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.001063/0.001063, allocations: 174.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.415/1.415, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.0009104/0.0009103, allocations: 95.98 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04262/0.04262, allocations: 8.834 MB / 345.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.694e-05/2.697e-05, allocations: 4 kB / 405.7 MB, free: 61.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.09998, allocations: 52.39 MB / 458.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.393/0.493, allocations: 85.99 MB / 0.5313 GB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.4933, allocations: 76.22 kB / 0.5314 GB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1573/0.6505, allocations: 63.34 MB / 0.5932 GB, free: 6.523 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.6506, allocations: 0 / 0.5932 GB, free: 6.523 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001001/0.6507, allocations: 56 kB / 0.5933 GB, free: 6.469 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01252/0.6632, allocations: 3.258 MB / 0.5965 GB, free: 3.148 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.6633, allocations: 8.031 kB / 0.5965 GB, free: 3.141 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002061/0.6654, allocations: 0.59 MB / 0.597 GB, free: 2.539 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009051/0.6744, allocations: 1.935 MB / 0.5989 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004832/0.6793, allocations: 1.703 MB / 0.6006 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004051/0.6797, allocations: 221.8 kB / 0.6008 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002096/0.6818, allocations: 287.9 kB / 0.6011 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01658/0.6984, allocations: 7.786 MB / 0.6087 GB, free: 6.152 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001055/0.6986, allocations: 27.72 kB / 0.6087 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004548/0.6991, allocations: 135.9 kB / 0.6088 GB, free: 5.992 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001361/0.7004, allocations: 0.9233 MB / 0.6097 GB, free: 5.066 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01509/0.7155, allocations: 7.235 MB / 0.6168 GB, free: 13.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03783/0.7534, allocations: 25.61 MB / 0.6418 GB, free: 3.688 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005678/0.7591, allocations: 2.584 MB / 0.6443 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.7604, allocations: 0.8807 MB / 0.6452 GB, free: 104 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.26/1.02, allocations: 5.104 MB / 0.6502 GB, free: 122.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.414e-05/1.02, allocations: 47.94 kB / 0.6502 GB, free: 122.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 4.419e-06/1.02, allocations: 1.094 kB / 0.6502 GB, free: 122.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=176): time 0.01355/1.034, allocations: 4.725 MB / 0.6548 GB, free: 121.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/1.034, allocations: 70.72 kB / 0.6549 GB, free: 121.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005233/1.039, allocations: 2.314 MB / 0.6572 GB, free: 121.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002785/1.04, allocations: 49.33 kB / 0.6572 GB, free: 121.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001819/1.041, allocations: 2.087 MB / 0.6593 GB, free: 120.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007889/1.042, allocations: 0.6451 MB / 0.6599 GB, free: 119.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001925/1.042, allocations: 82.69 kB / 0.66 GB, free: 119.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003469/1.043, allocations: 495.1 kB / 0.6604 GB, free: 119.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002765/1.046, allocations: 1.299 MB / 0.6617 GB, free: 119.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003809/1.049, allocations: 3.547 MB / 0.6652 GB, free: 116.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003674/1.053, allocations: 2.198 MB / 0.6673 GB, free: 116.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.768e-05/1.053, allocations: 26.12 kB / 0.6673 GB, free: 116.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.008447/1.062, allocations: 5.084 MB / 0.6723 GB, free: 116.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.93e-05/1.062, allocations: 39.62 kB / 0.6723 GB, free: 116.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-05/1.062, allocations: 81.97 kB / 0.6724 GB, free: 116.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008217/1.063, allocations: 370.6 kB / 0.6728 GB, free: 116.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/1.065, allocations: 0.9098 MB / 0.6737 GB, free: 116 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004253/1.07, allocations: 3.823 MB / 0.6774 GB, free: 114.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003429/1.073, allocations: 201.9 kB / 0.6776 GB, free: 114.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004781/1.073, allocations: 246 kB / 0.6778 GB, free: 114.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * 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 (498): * Single equations (assignments): 493 * 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.0006775/1.074, allocations: 408.4 kB / 0.6782 GB, free: 114.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005184/1.075, allocations: 235.6 kB / 0.6784 GB, free: 114.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003489/1.078, allocations: 2.256 MB / 0.6806 GB, free: 113.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/1.078, allocations: 32.27 kB / 0.6807 GB, free: 113.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/1.078, allocations: 3.625 kB / 0.6807 GB, free: 113.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/1.078, allocations: 9.891 kB / 0.6807 GB, free: 113.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/1.088, allocations: 6.38 MB / 0.6869 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/1.089, allocations: 6.484 kB / 0.6869 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000887/1.089, allocations: 242.8 kB / 0.6872 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005835/1.09, allocations: 264.6 kB / 0.6874 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.543e-05/1.09, allocations: 32.94 kB / 0.6874 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003068/1.093, allocations: 3.129 MB / 0.6905 GB, free: 108.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/1.093, allocations: 11 kB / 0.6905 GB, free: 108.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004553/1.098, allocations: 3.766 MB / 0.6942 GB, free: 107 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/1.099, allocations: 326.1 kB / 0.6945 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002539/1.099, allocations: 33.08 kB / 0.6945 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009101/1.1, allocations: 78.06 kB / 0.6946 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002076/1.1, allocations: 104.3 kB / 0.6947 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/1.1, allocations: 47.34 kB / 0.6947 GB, free: 106.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00276/1.103, allocations: 1.633 MB / 0.6963 GB, free: 106 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.103, allocations: 0 / 0.6963 GB, free: 106 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004874/1.108, allocations: 0.7329 MB / 0.6971 GB, free: 105.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (131): * Single equations (assignments): 126 * 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.005197/1.113, allocations: 5.354 MB / 0.7023 GB, free: 102.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005625/1.119, allocations: 3.307 MB / 0.7055 GB, free: 101.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/1.119, allocations: 64 / 0.7055 GB, free: 101.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/1.121, allocations: 1.126 MB / 0.7066 GB, free: 101 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/1.123, allocations: 361.3 kB / 0.707 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02112/1.144, allocations: 6.525 MB / 0.7133 GB, free: 95.97 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004407/1.148, allocations: 2.678 MB / 0.7159 GB, free: 93.85 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003381/1.152, allocations: 1.272 MB / 0.7172 GB, free: 93.04 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001946/1.154, allocations: 1.344 MB / 0.7185 GB, free: 91.81 MB / 458.7 MB Notification: Performance of SimCode: time 1.123e-06/1.154, allocations: 0 / 0.7185 GB, free: 91.81 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07869/1.233, allocations: 54.78 MB / 0.772 GB, free: 43.54 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/1.233, allocations: 160.6 kB / 0.7721 GB, free: 43.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.363/4.596, allocations: 0 / 0.7721 GB, free: 43.32 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)