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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009639/0.0009637, allocations: 95.44 kB / 16.3 MB, free: 6.457 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.0009601/0.0009604, allocations: 185.3 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.2 MB / 241.1 MB, free: 5.363 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002719/0.000272, allocations: 7.875 kB / 300.8 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1138, allocations: 50.43 MB / 351.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02994/0.1438, allocations: 32.8 MB / 384 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02011/0.1639, allocations: 8.519 MB / 392.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007672/0.1717, allocations: 167.6 kB / 392.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005926/0.1776, allocations: 1.606 MB / 394.3 MB, free: 380 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01595/0.1936, allocations: 4.893 MB / 399.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002879/0.1965, allocations: 0.6124 MB / 399.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.2846/0.4812, allocations: 48.03 MB / 447.9 MB, free: 26.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004522/0.4857, allocations: 3.459 MB / 451.3 MB, free: 26.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001441/0.4872, allocations: 1.032 MB / 452.3 MB, free: 26.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001767/0.489, allocations: 1.4 MB / 453.7 MB, free: 25.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005058/0.4895, allocations: 132 kB / 453.9 MB, free: 25.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001619/0.4911, allocations: 0.9159 MB / 454.8 MB, free: 24.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001211/0.4924, allocations: 1.524 MB / 456.3 MB, free: 23.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007723/0.4931, allocations: 0.7793 MB / 457.1 MB, free: 23.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004263/0.4974, allocations: 5.399 MB / 462.5 MB, free: 18.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4974, allocations: 2.719 kB / 462.5 MB, free: 18.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4975, allocations: 4 kB / 462.5 MB, free: 18.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001445/0.4976, allocations: 0 / 462.5 MB, free: 18.75 MB / 350.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.009993/0.5076, allocations: 4.249 MB / 466.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.5077, allocations: 8.031 kB / 466.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001153/0.5088, allocations: 0.6235 MB / 467.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1558/0.6646, allocations: 14.46 MB / 481.8 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008565/0.6732, allocations: 3.377 MB / 485.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.6734, allocations: 194.8 kB / 485.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001052/0.6745, allocations: 276.8 kB / 485.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01392/0.6884, allocations: 8.806 MB / 494.5 MB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.6886, allocations: 52.95 kB / 494.5 MB, free: 6.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003299/0.6889, allocations: 130.8 kB / 494.7 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002891/0.6918, allocations: 1.767 MB / 496.4 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01424/0.7061, allocations: 7.611 MB / 0.4922 GB, free: 60 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04782/0.7539, allocations: 35.62 MB / 0.527 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008492/0.7625, allocations: 3.763 MB / 0.5307 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005103/0.7631, allocations: 331 kB / 0.531 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/0.7631, allocations: 58.92 kB / 0.5311 GB, free: 11.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.729e-06/0.7631, allocations: 0 / 0.5311 GB, free: 11.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05788/0.821, allocations: 20.75 MB / 0.5513 GB, free: 6.957 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.8212, allocations: 252.1 kB / 0.5516 GB, free: 6.656 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007576/0.8288, allocations: 4.184 MB / 0.5556 GB, free: 2.445 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00044/0.8292, allocations: 49.7 kB / 0.5557 GB, free: 2.391 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002414/0.8317, allocations: 2.818 MB / 0.5584 GB, free: 15.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009941/0.8327, allocations: 0.7157 MB / 0.5591 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002438/0.8329, allocations: 108 kB / 0.5592 GB, free: 14.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003069/0.8332, allocations: 0.5371 MB / 0.5598 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002883/0.8361, allocations: 2.142 MB / 0.5619 GB, free: 12.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004562/0.8407, allocations: 5.365 MB / 0.5671 GB, free: 5.156 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004085/0.8448, allocations: 3.323 MB / 0.5703 GB, free: 1.934 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-05/0.8448, allocations: 35.09 kB / 0.5704 GB, free: 1.902 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01347/0.8583, allocations: 8.615 MB / 0.5788 GB, free: 9.559 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.146e-05/0.8584, allocations: 53.97 kB / 0.5788 GB, free: 9.508 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001032/0.8585, allocations: 112 kB / 0.579 GB, free: 9.398 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003973/0.8625, allocations: 1.527 MB / 0.5804 GB, free: 7.867 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004084/0.8666, allocations: 1.22 MB / 0.5816 GB, free: 6.645 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2228/1.089, allocations: 9.48 MB / 0.5909 GB, free: 155.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004545/1.094, allocations: 327.1 kB / 0.5912 GB, free: 155.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007705/1.095, allocations: 328.4 kB / 0.5915 GB, free: 155.1 MB / 462.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.003437/1.098, allocations: 1.935 MB / 0.5934 GB, free: 155 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000817/1.099, allocations: 354.4 kB / 0.5937 GB, free: 155 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00811/1.107, allocations: 4.14 MB / 0.5978 GB, free: 154.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.604e-05/1.107, allocations: 22.45 kB / 0.5978 GB, free: 154.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-05/1.107, allocations: 9.969 kB / 0.5978 GB, free: 154.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.664e-05/1.107, allocations: 10.44 kB / 0.5978 GB, free: 154.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01675/1.124, allocations: 9.319 MB / 0.6069 GB, free: 153.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/1.124, allocations: 3.969 kB / 0.6069 GB, free: 153.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/1.125, allocations: 266.7 kB / 0.6072 GB, free: 153.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003399/1.129, allocations: 1.35 MB / 0.6085 GB, free: 153.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/1.129, allocations: 35.86 kB / 0.6085 GB, free: 153.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009829/1.139, allocations: 8.629 MB / 0.617 GB, free: 149.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.139, allocations: 0 / 0.617 GB, free: 149.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009451/1.148, allocations: 7.141 MB / 0.6239 GB, free: 145.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/1.15, allocations: 425.8 kB / 0.6243 GB, free: 145.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00046/1.15, allocations: 37.33 kB / 0.6244 GB, free: 145.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/1.152, allocations: 123.8 kB / 0.6245 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003374/1.152, allocations: 107.1 kB / 0.6246 GB, free: 145 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/1.152, allocations: 48.88 kB / 0.6247 GB, free: 145 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003809/1.156, allocations: 2.681 MB / 0.6273 GB, free: 142.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.156, allocations: 0 / 0.6273 GB, free: 142.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005443/1.161, allocations: 1.033 MB / 0.6283 GB, free: 141.3 MB / 462.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.009734/1.171, allocations: 8.084 MB / 0.6362 GB, free: 133.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007787/1.179, allocations: 5.337 MB / 0.6414 GB, free: 127.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/1.179, allocations: 4 kB / 0.6414 GB, free: 127.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/1.182, allocations: 2.071 MB / 0.6434 GB, free: 125.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/1.184, allocations: 465.9 kB / 0.6439 GB, free: 125.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07253/1.257, allocations: 113.1 MB / 0.7543 GB, free: 8.266 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002744/1.26, allocations: 3.169 MB / 0.7574 GB, free: 5.059 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003828/1.264, allocations: 1.835 MB / 0.7592 GB, free: 3.215 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002105/1.266, allocations: 1.757 MB / 0.7609 GB, free: 1.461 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/1.266, allocations: 0 / 0.7609 GB, free: 1.461 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2973/1.563, allocations: 81.21 MB / 0.8402 GB, free: 95.76 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001289/1.563, allocations: 219.4 kB / 0.8404 GB, free: 95.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.192/5.755, allocations: 0 / 0.8404 GB, free: 95.52 MB / 462.1 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