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.004581/0.004581, allocations: 172 kB / 15.11 MB, free: 5.98 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.188/1.188, allocations: 223.2 MB / 239 MB, free: 92 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008314/0.0008314, allocations: 97.17 kB / 290.2 MB, free: 4.523 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03943/0.03943, allocations: 8.939 MB / 350.3 MB, free: 4.184 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002648/0.0002648, allocations: 8 kB / 413.2 MB, free: 5.164 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1703, allocations: 52.38 MB / 465.6 MB, free: 69.28 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08108/0.2514, allocations: 86.06 MB / 0.5387 GB, free: 15.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.2517, allocations: 78.61 kB / 0.5388 GB, free: 15.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2934/0.5451, allocations: 63.28 MB / 0.6006 GB, free: 55.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.5451, allocations: 0 / 0.6006 GB, free: 55.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.676e-05/0.5452, allocations: 56 kB / 0.6007 GB, free: 55.08 MB / 378.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.009153/0.5544, allocations: 3.344 MB / 0.6039 GB, free: 51.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.5544, allocations: 8.031 kB / 0.6039 GB, free: 51.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001586/0.556, allocations: 0.5939 MB / 0.6045 GB, free: 51.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007563/0.5636, allocations: 1.935 MB / 0.6064 GB, free: 49.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003815/0.5674, allocations: 1.703 MB / 0.6081 GB, free: 47.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.5676, allocations: 221.8 kB / 0.6083 GB, free: 47.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008748/0.5685, allocations: 291.8 kB / 0.6086 GB, free: 46.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01226/0.5808, allocations: 7.852 MB / 0.6162 GB, free: 38.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-05/0.5809, allocations: 27.8 kB / 0.6163 GB, free: 38.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005906/0.5815, allocations: 139.9 kB / 0.6164 GB, free: 38.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001039/0.5825, allocations: 0.9155 MB / 0.6173 GB, free: 37.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01088/0.5934, allocations: 7.351 MB / 0.6245 GB, free: 30.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02687/0.6203, allocations: 25.61 MB / 0.6495 GB, free: 4.023 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004921/0.6253, allocations: 2.618 MB / 0.652 GB, free: 1.289 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006328/0.6316, allocations: 5.122 MB / 0.657 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.6317, allocations: 43.56 kB / 0.6571 GB, free: 11.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=148): time 3.116e-06/0.6317, allocations: 4 kB / 0.6571 GB, free: 11.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=176): time 0.01244/0.6442, allocations: 5.778 MB / 0.6627 GB, free: 5.746 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.6442, allocations: 68.72 kB / 0.6628 GB, free: 5.668 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003586/0.6478, allocations: 2.338 MB / 0.6651 GB, free: 3.305 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.6479, allocations: 53.69 kB / 0.6651 GB, free: 3.246 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.6494, allocations: 2.085 MB / 0.6672 GB, free: 1.129 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005457/0.65, allocations: 0.6514 MB / 0.6678 GB, free: 480 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.6502, allocations: 87.92 kB / 0.6679 GB, free: 392 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003104/0.6505, allocations: 487.2 kB / 0.6683 GB, free: 15.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002362/0.6529, allocations: 1.347 MB / 0.6697 GB, free: 14.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003279/0.6562, allocations: 3.582 MB / 0.6731 GB, free: 9.832 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002867/0.659, allocations: 2.215 MB / 0.6753 GB, free: 7.621 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-05/0.6591, allocations: 24 kB / 0.6753 GB, free: 7.598 MB / 410.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.007478/0.6666, allocations: 5.175 MB / 0.6804 GB, free: 2.414 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.109e-05/0.6666, allocations: 45.7 kB / 0.6804 GB, free: 2.371 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-05/0.6667, allocations: 80 kB / 0.6805 GB, free: 2.293 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008202/0.6675, allocations: 374.9 kB / 0.6809 GB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002517/0.6701, allocations: 0.9163 MB / 0.6818 GB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00474/0.6748, allocations: 3.926 MB / 0.6856 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/0.6771, allocations: 199.9 kB / 0.6858 GB, free: 12.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002981/0.6774, allocations: 244 kB / 0.686 GB, free: 12.5 MB / 426.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 () * Number of clocked 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.002167/0.6796, allocations: 1.611 MB / 0.6876 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002798/0.6799, allocations: 229 kB / 0.6878 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003588/0.6835, allocations: 2.315 MB / 0.6901 GB, free: 8.324 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001052/0.6836, allocations: 27.98 kB / 0.6901 GB, free: 8.297 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/0.6836, allocations: 7.938 kB / 0.6901 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.6836, allocations: 11.91 kB / 0.6901 GB, free: 8.277 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01013/0.6937, allocations: 6.412 MB / 0.6964 GB, free: 1.734 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.6938, allocations: 4 kB / 0.6964 GB, free: 1.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008907/0.6947, allocations: 247.6 kB / 0.6966 GB, free: 1.488 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006366/0.6953, allocations: 257.1 kB / 0.6969 GB, free: 1.234 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-05/0.6954, allocations: 31.98 kB / 0.6969 GB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003611/0.6991, allocations: 3.247 MB / 0.7001 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.6991, allocations: 4 kB / 0.7001 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00489/0.704, allocations: 3.839 MB / 0.7038 GB, free: 9.801 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006201/0.7046, allocations: 318 kB / 0.7041 GB, free: 9.469 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002294/0.7048, allocations: 32 kB / 0.7042 GB, free: 9.438 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008031/0.7057, allocations: 75.89 kB / 0.7042 GB, free: 9.363 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.7058, allocations: 113.1 kB / 0.7043 GB, free: 9.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.506e-05/0.7059, allocations: 48 kB / 0.7044 GB, free: 9.203 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00241/0.7084, allocations: 1.657 MB / 0.706 GB, free: 7.531 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7084, allocations: 0 / 0.706 GB, free: 7.531 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002755/0.7111, allocations: 0.7227 MB / 0.7067 GB, free: 6.809 MB / 442.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 () * Number of clocked 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.005602/0.7167, allocations: 5.434 MB / 0.712 GB, free: 1.242 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00535/0.7221, allocations: 3.377 MB / 0.7153 GB, free: 13.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.7221, allocations: 0 / 0.7153 GB, free: 13.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.7236, allocations: 1.146 MB / 0.7164 GB, free: 12.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001471/0.7251, allocations: 360.8 kB / 0.7168 GB, free: 12.35 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1987/0.9238, allocations: 75.47 MB / 0.7905 GB, free: 75.65 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002152/0.926, allocations: 2.68 MB / 0.7931 GB, free: 74.89 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00261/0.9286, allocations: 1.27 MB / 0.7943 GB, free: 74.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001316/0.9299, allocations: 1.347 MB / 0.7956 GB, free: 74.86 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/0.9299, allocations: 3.281 kB / 0.7956 GB, free: 74.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06256/0.9925, allocations: 54.42 MB / 0.8488 GB, free: 40.84 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/0.9927, allocations: 185.1 kB / 0.849 GB, free: 40.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.005/3.998, allocations: 0 / 0.849 GB, free: 40.6 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)