Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001755/0.001755, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009093/0.0009095, allocations: 82.02 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.413e-05/3.422e-05, allocations: 0 / 350.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1253, allocations: 51.47 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.425/0.5504, allocations: 94.31 MB / 496.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/0.5508, allocations: 89.27 kB / 496.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2198/0.7706, allocations: 86.4 MB / 0.5693 GB, free: 5.988 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.7707, allocations: 0 / 0.5693 GB, free: 5.988 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002148/0.7709, allocations: 72 kB / 0.5693 GB, free: 5.918 MB / 442.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.01361/0.7845, allocations: 3.995 MB / 0.5732 GB, free: 1.867 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.011e-05/0.7846, allocations: 15.97 kB / 0.5732 GB, free: 1.852 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002657/0.7873, allocations: 0.6595 MB / 0.5739 GB, free: 1.184 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3347/1.122, allocations: 6.617 MB / 0.5803 GB, free: 81.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01329/1.135, allocations: 4.881 MB / 0.5851 GB, free: 81.21 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003623/1.136, allocations: 266.1 kB / 0.5854 GB, free: 81.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001985/1.138, allocations: 366.1 kB / 0.5857 GB, free: 81.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0167/1.154, allocations: 9.038 MB / 0.5945 GB, free: 78.77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000174/1.155, allocations: 56.94 kB / 0.5946 GB, free: 78.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005668/1.155, allocations: 173.4 kB / 0.5948 GB, free: 78.77 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001304/1.157, allocations: 0.8954 MB / 0.5956 GB, free: 78.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01645/1.173, allocations: 7.483 MB / 0.6029 GB, free: 78.74 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04561/1.219, allocations: 42.25 MB / 0.6442 GB, free: 50.89 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008317/1.227, allocations: 3.727 MB / 0.6478 GB, free: 49.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002267/1.229, allocations: 1.942 MB / 0.6497 GB, free: 48.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004079/1.23, allocations: 327.6 kB / 0.65 GB, free: 48.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/1.23, allocations: 58.59 kB / 0.6501 GB, free: 48.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 6.522e-06/1.23, allocations: 0 / 0.6501 GB, free: 48.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.04778/1.278, allocations: 17.11 MB / 0.6668 GB, free: 42.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/1.278, allocations: 255.3 kB / 0.6671 GB, free: 42.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008018/1.286, allocations: 3.419 MB / 0.6704 GB, free: 40.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004914/1.286, allocations: 56.58 kB / 0.6704 GB, free: 40.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002215/1.289, allocations: 2.828 MB / 0.6732 GB, free: 38.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001157/1.29, allocations: 0.7098 MB / 0.6739 GB, free: 38.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007516/1.291, allocations: 114 kB / 0.674 GB, free: 37.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005388/1.291, allocations: 0.534 MB / 0.6745 GB, free: 37.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003232/1.294, allocations: 2.05 MB / 0.6765 GB, free: 36.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006461/1.301, allocations: 5.278 MB / 0.6817 GB, free: 31.68 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00727/1.308, allocations: 3.273 MB / 0.6849 GB, free: 30.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001539/1.308, allocations: 33.22 kB / 0.6849 GB, free: 30.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.02446/1.333, allocations: 8.336 MB / 0.6931 GB, free: 27.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002786/1.333, allocations: 53.69 kB / 0.6931 GB, free: 27.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003117/1.334, allocations: 119.3 kB / 0.6932 GB, free: 27.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005536/1.339, allocations: 1.374 MB / 0.6946 GB, free: 27.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006903/1.346, allocations: 1.233 MB / 0.6958 GB, free: 26.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01537/1.362, allocations: 8.395 MB / 0.704 GB, free: 19.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006923/1.369, allocations: 319.8 kB / 0.7043 GB, free: 18.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00148/1.37, allocations: 327.3 kB / 0.7046 GB, free: 18.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 (653): * Single equations (assignments): 649 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002255/1.372, allocations: 0.5167 MB / 0.7051 GB, free: 17.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/1.374, allocations: 359.4 kB / 0.7054 GB, free: 17.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009192/1.383, allocations: 3.893 MB / 0.7092 GB, free: 14.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.395e-05/1.383, allocations: 20 kB / 0.7093 GB, free: 14.49 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.181e-05/1.383, allocations: 12 kB / 0.7093 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.772e-05/1.383, allocations: 9.609 kB / 0.7093 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01949/1.403, allocations: 8.886 MB / 0.718 GB, free: 7.246 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.689e-05/1.403, allocations: 0 / 0.718 GB, free: 7.246 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001355/1.404, allocations: 261.9 kB / 0.7182 GB, free: 7.035 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003347/1.407, allocations: 1.214 MB / 0.7194 GB, free: 6.18 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000308/1.408, allocations: 28 kB / 0.7194 GB, free: 6.152 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01165/1.419, allocations: 7.714 MB / 0.7269 GB, free: 0 / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.247e-05/1.419, allocations: 2.578 kB / 0.727 GB, free: 0 / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/1.432, allocations: 6.765 MB / 0.7336 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001721/1.434, allocations: 404.6 kB / 0.7339 GB, free: 9.695 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001362/1.435, allocations: 31.12 kB / 0.734 GB, free: 9.668 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0023/1.438, allocations: 115.5 kB / 0.7341 GB, free: 9.594 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004619/1.438, allocations: 108.2 kB / 0.7342 GB, free: 9.527 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002354/1.438, allocations: 48.56 kB / 0.7342 GB, free: 9.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006832/1.445, allocations: 2.418 MB / 0.7366 GB, free: 7.211 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.445, allocations: 0 / 0.7366 GB, free: 7.211 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007742/1.453, allocations: 0.9946 MB / 0.7376 GB, free: 6.223 MB / 458.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.3366/1.789, allocations: 7.696 MB / 0.7451 GB, free: 87.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01049/1.8, allocations: 5.121 MB / 0.7501 GB, free: 86.96 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/1.8, allocations: 7 kB / 0.7501 GB, free: 86.96 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003707/1.804, allocations: 1.951 MB / 0.752 GB, free: 86.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003658/1.808, allocations: 447.9 kB / 0.7524 GB, free: 86.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02285/1.83, allocations: 8.813 MB / 0.761 GB, free: 85.31 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003519/1.834, allocations: 3.165 MB / 0.7641 GB, free: 84.52 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004963/1.839, allocations: 1.824 MB / 0.7659 GB, free: 84.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003044/1.842, allocations: 1.768 MB / 0.7676 GB, free: 84.48 MB / 458.7 MB Notification: Performance of SimCode: time 1.373e-06/1.842, allocations: 0 / 0.7676 GB, free: 84.48 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1465/1.989, allocations: 79.13 MB / 0.8449 GB, free: 60.08 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/1.989, allocations: 184.8 kB / 0.8451 GB, free: 59.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.402/6.391, allocations: 0 / 0.8451 GB, free: 59.86 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat