Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 94.8 kB / 16.94 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 177.6 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004655/0.0004657, allocations: 15.28 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1018, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0332/0.135, allocations: 32.82 MB / 361.3 MB, free: 3.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01919/0.1542, allocations: 8.508 MB / 369.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006025/0.1603, allocations: 171.5 kB / 369.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006302/0.1667, allocations: 1.606 MB / 371.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0167/0.1834, allocations: 4.897 MB / 376.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002817/0.1862, allocations: 0.6124 MB / 377 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2458/0.432, allocations: 26.26 MB / 403.3 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004926/0.437, allocations: 3.473 MB / 406.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001749/0.4388, allocations: 1.037 MB / 407.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001648/0.4404, allocations: 1.408 MB / 409.2 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004751/0.4409, allocations: 130.2 kB / 409.4 MB, free: 9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001749/0.4427, allocations: 0.9041 MB / 410.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001303/0.444, allocations: 1.534 MB / 411.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008294/0.4448, allocations: 0.7822 MB / 412.6 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00415/0.449, allocations: 5.427 MB / 418 MB, free: 2.172 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.449, allocations: 0 / 418 MB, free: 2.172 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.449, allocations: 0 / 418 MB, free: 2.172 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001883/0.4492, allocations: 0 / 418 MB, free: 2.172 MB / 318.1 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.01106/0.4603, allocations: 4.269 MB / 422.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.4603, allocations: 12.03 kB / 422.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001635/0.462, allocations: 0.6248 MB / 422.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1657/0.6277, allocations: 14.47 MB / 437.4 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01048/0.6383, allocations: 3.71 MB / 441.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.6386, allocations: 195.4 kB / 441.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001304/0.6399, allocations: 268.5 kB / 441.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.016/0.6559, allocations: 8.804 MB / 450.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001347/0.6561, allocations: 47.45 kB / 450.4 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003462/0.6564, allocations: 129 kB / 450.5 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0031/0.6595, allocations: 1.773 MB / 452.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0142/0.6737, allocations: 7.614 MB / 459.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04587/0.7196, allocations: 35.66 MB / 495.6 MB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007979/0.7277, allocations: 3.76 MB / 499.3 MB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004476/0.7282, allocations: 331.2 kB / 499.6 MB, free: 7.988 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.7282, allocations: 50.8 kB / 499.7 MB, free: 7.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 5.22e-06/0.7282, allocations: 0 / 499.7 MB, free: 7.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.05436/0.7826, allocations: 20.89 MB / 0.5084 GB, free: 2.938 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.7828, allocations: 259.7 kB / 0.5086 GB, free: 2.633 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006029/0.7888, allocations: 4.196 MB / 0.5127 GB, free: 14.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005264/0.7894, allocations: 57.7 kB / 0.5128 GB, free: 14.35 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001945/0.7913, allocations: 2.822 MB / 0.5155 GB, free: 11.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001033/0.7924, allocations: 0.7149 MB / 0.5162 GB, free: 10.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/0.7927, allocations: 116 kB / 0.5163 GB, free: 10.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003219/0.793, allocations: 0.535 MB / 0.5169 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003165/0.7962, allocations: 2.138 MB / 0.519 GB, free: 8.031 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005143/0.8013, allocations: 5.361 MB / 0.5242 GB, free: 1.109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004799/0.8062, allocations: 3.336 MB / 0.5274 GB, free: 13.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.405e-05/0.8062, allocations: 36 kB / 0.5275 GB, free: 13.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01581/0.8221, allocations: 8.603 MB / 0.5359 GB, free: 5.461 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.106e-05/0.8222, allocations: 53 kB / 0.5359 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/0.8223, allocations: 116 kB / 0.536 GB, free: 5.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004144/0.8265, allocations: 1.527 MB / 0.5375 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004151/0.8307, allocations: 1.228 MB / 0.5387 GB, free: 2.535 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2186/1.049, allocations: 9.479 MB / 0.548 GB, free: 156.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00559/1.055, allocations: 319.7 kB / 0.5483 GB, free: 156 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001513/1.057, allocations: 332.3 kB / 0.5486 GB, free: 156 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (650): * Single equations (assignments): 646 * 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 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004846/1.061, allocations: 1.948 MB / 0.5505 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/1.063, allocations: 354.2 kB / 0.5509 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008271/1.071, allocations: 4.14 MB / 0.5549 GB, free: 153.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.155e-05/1.071, allocations: 20.62 kB / 0.5549 GB, free: 153.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/1.071, allocations: 11.62 kB / 0.5549 GB, free: 153.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.559e-05/1.071, allocations: 8.578 kB / 0.5549 GB, free: 153.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/1.087, allocations: 9.328 MB / 0.564 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/1.087, allocations: 0 / 0.564 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/1.088, allocations: 271.1 kB / 0.5643 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003492/1.091, allocations: 1.347 MB / 0.5656 GB, free: 150.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/1.092, allocations: 35.03 kB / 0.5657 GB, free: 150.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009668/1.101, allocations: 8.625 MB / 0.5741 GB, free: 146 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/1.101, allocations: 3.812 kB / 0.5741 GB, free: 146 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009099/1.11, allocations: 7.155 MB / 0.5811 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002/1.112, allocations: 0.7191 MB / 0.5818 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004318/1.113, allocations: 28 kB / 0.5818 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001397/1.114, allocations: 115.8 kB / 0.5819 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003342/1.115, allocations: 111.1 kB / 0.582 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/1.115, allocations: 52.22 kB / 0.5821 GB, free: 138.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003656/1.118, allocations: 2.705 MB / 0.5847 GB, free: 136.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.118, allocations: 2.844 kB / 0.5847 GB, free: 136.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004709/1.123, allocations: 1.032 MB / 0.5857 GB, free: 135.2 MB / 446.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 132 * 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.009271/1.132, allocations: 8.082 MB / 0.5936 GB, free: 127.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006966/1.139, allocations: 5.354 MB / 0.5988 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/1.139, allocations: 3.969 kB / 0.5988 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00271/1.142, allocations: 2.069 MB / 0.6009 GB, free: 119.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002231/1.144, allocations: 450.8 kB / 0.6013 GB, free: 119.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07304/1.217, allocations: 113.3 MB / 0.7119 GB, free: 1.934 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1664/1.384, allocations: 3.169 MB / 0.715 GB, free: 159.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005586/1.39, allocations: 1.834 MB / 0.7168 GB, free: 159.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002659/1.392, allocations: 1.762 MB / 0.7185 GB, free: 159.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.653e-06/1.392, allocations: 1 kB / 0.7185 GB, free: 159.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1071/1.499, allocations: 81.49 MB / 0.7981 GB, free: 92.34 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/1.5, allocations: 215.3 kB / 0.7983 GB, free: 92.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.529/5.029, allocations: 3.938 kB / 0.7983 GB, free: 92.1 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat