Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_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.001022/0.001022, allocations: 174.6 kB / 8.347 MB, free: 0.7266 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.355/1.355, allocations: 221.5 MB / 230.3 MB, free: 7.59 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.0009042/0.000904, allocations: 90.7 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.992e-05/1.994e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3425/0.4481, allocations: 92.99 MB / 480.5 MB, free: 1.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.4484, allocations: 83.95 kB / 480.6 MB, free: 1.605 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4937/0.9421, allocations: 82.69 MB / 0.5501 GB, free: 96.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.9422, allocations: 1.25 kB / 0.5501 GB, free: 96.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005729/0.9428, allocations: 73.06 kB / 0.5502 GB, free: 96.23 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.02014/0.9629, allocations: 3.959 MB / 0.5541 GB, free: 95.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.252e-05/0.963, allocations: 9.844 kB / 0.5541 GB, free: 95.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02953/0.9926, allocations: 6.611 MB / 0.5605 GB, free: 95.28 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01604/1.009, allocations: 5.511 MB / 0.5659 GB, free: 94.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/1.009, allocations: 114.6 kB / 0.566 GB, free: 94.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001888/1.011, allocations: 214.6 kB / 0.5662 GB, free: 94.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01039/1.021, allocations: 5.25 MB / 0.5713 GB, free: 94.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01579/1.037, allocations: 8.191 MB / 0.5793 GB, free: 92.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001967/1.037, allocations: 65.88 kB / 0.5794 GB, free: 92.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004652/1.038, allocations: 28.44 kB / 0.5794 GB, free: 92.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001071/1.039, allocations: 0.892 MB / 0.5803 GB, free: 92.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0387/1.078, allocations: 40.64 MB / 0.62 GB, free: 63.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003117/1.081, allocations: 3.044 MB / 0.623 GB, free: 61.87 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001678/1.082, allocations: 1.903 MB / 0.6248 GB, free: 61.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003521/1.083, allocations: 337.4 kB / 0.6251 GB, free: 60.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/1.083, allocations: 47.72 kB / 0.6252 GB, free: 60.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 4.509e-06/1.083, allocations: 3.844 kB / 0.6252 GB, free: 60.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.03231/1.115, allocations: 16.7 MB / 0.6415 GB, free: 53.06 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/1.115, allocations: 252.6 kB / 0.6417 GB, free: 52.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004153/1.12, allocations: 3.003 MB / 0.6447 GB, free: 50.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003519/1.12, allocations: 33.7 kB / 0.6447 GB, free: 50.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001562/1.121, allocations: 2.87 MB / 0.6475 GB, free: 47.47 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006672/1.122, allocations: 0.7032 MB / 0.6482 GB, free: 46.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002056/1.122, allocations: 0 / 0.6482 GB, free: 46.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002372/1.123, allocations: 0.544 MB / 0.6487 GB, free: 46.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002173/1.125, allocations: 1.97 MB / 0.6506 GB, free: 44.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003345/1.128, allocations: 5.33 MB / 0.6559 GB, free: 37.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003636/1.132, allocations: 3.223 MB / 0.659 GB, free: 35.13 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-05/1.132, allocations: 32 kB / 0.659 GB, free: 35.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01424/1.146, allocations: 7.733 MB / 0.6666 GB, free: 28.53 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.91e-05/1.146, allocations: 61.81 kB / 0.6666 GB, free: 28.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/1.146, allocations: 116 kB / 0.6668 GB, free: 28.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003646/1.15, allocations: 1.372 MB / 0.6681 GB, free: 27.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004293/1.154, allocations: 1.275 MB / 0.6693 GB, free: 26.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009412/1.164, allocations: 7.862 MB / 0.677 GB, free: 19.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004555/1.168, allocations: 203.2 kB / 0.6772 GB, free: 19.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001168/1.17, allocations: 354.5 kB / 0.6775 GB, free: 18.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 543 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (677): * Single equations (assignments): 673 * Array equations: 3 * 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 {(4,87.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001545/1.171, allocations: 404.5 kB / 0.6779 GB, free: 18.46 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007359/1.179, allocations: 4.024 MB / 0.6819 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008517/1.179, allocations: 331.7 kB / 0.6822 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007132/1.187, allocations: 3.752 MB / 0.6858 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.842e-05/1.187, allocations: 20 kB / 0.6859 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/1.187, allocations: 8 kB / 0.6859 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-05/1.187, allocations: 7.969 kB / 0.6859 GB, free: 10.94 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/1.202, allocations: 8.146 MB / 0.6938 GB, free: 2.766 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/1.203, allocations: 4 kB / 0.6938 GB, free: 2.762 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/1.204, allocations: 255.6 kB / 0.6941 GB, free: 2.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003116/1.207, allocations: 1.191 MB / 0.6952 GB, free: 1.316 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002339/1.207, allocations: 11.94 kB / 0.6953 GB, free: 1.305 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009874/1.217, allocations: 7.042 MB / 0.7021 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/1.217, allocations: 4 kB / 0.7021 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01163/1.229, allocations: 6.589 MB / 0.7086 GB, free: 3.492 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/1.23, allocations: 368.7 kB / 0.7089 GB, free: 3.109 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009399/1.231, allocations: 4 kB / 0.7089 GB, free: 3.105 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/1.233, allocations: 91.22 kB / 0.709 GB, free: 3.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003777/1.234, allocations: 113.1 kB / 0.7091 GB, free: 2.906 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001739/1.234, allocations: 48 kB / 0.7092 GB, free: 2.859 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004644/1.239, allocations: 2.038 MB / 0.7112 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.239, allocations: 0 / 0.7112 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.3102/1.549, allocations: 0.8531 MB / 0.712 GB, free: 101.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 131 * Array equations: 3 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01561/1.564, allocations: 7.504 MB / 0.7193 GB, free: 100.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01271/1.577, allocations: 5.004 MB / 0.7242 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/1.577, allocations: 1.422 kB / 0.7242 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003975/1.581, allocations: 1.9 MB / 0.7261 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003408/1.585, allocations: 383.5 kB / 0.7264 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0289/1.614, allocations: 8.577 MB / 0.7348 GB, free: 98.67 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005277/1.619, allocations: 3.166 MB / 0.7379 GB, free: 97.89 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005517/1.624, allocations: 1.875 MB / 0.7397 GB, free: 97.85 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003182/1.628, allocations: 1.749 MB / 0.7414 GB, free: 97.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.703e-06/1.628, allocations: 7.938 kB / 0.7414 GB, free: 97.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1168/1.744, allocations: 73.8 MB / 0.8135 GB, free: 57.19 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/1.745, allocations: 158.4 kB / 0.8137 GB, free: 56.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.317/6.062, allocations: 0 / 0.8137 GB, free: 56.99 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat