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.001164/0.001164, allocations: 197.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.2 MB / 245 MB, free: 7.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008768/0.0008769, allocations: 108.3 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002369/0.000237, allocations: 11.98 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2281, allocations: 51.47 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1143/0.3424, allocations: 94.38 MB / 0.4921 GB, free: 12.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.3427, allocations: 95.89 kB / 0.4922 GB, free: 12.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4009/0.7436, allocations: 86.37 MB / 0.5765 GB, free: 33.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.7436, allocations: 0 / 0.5765 GB, free: 33.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002981/0.7439, allocations: 76 kB / 0.5766 GB, free: 33.57 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01364/0.7576, allocations: 4.374 MB / 0.5809 GB, free: 29.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.653e-05/0.7577, allocations: 8.031 kB / 0.5809 GB, free: 29.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003059/0.7607, allocations: 0.6595 MB / 0.5815 GB, free: 28.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02319/0.784, allocations: 6.605 MB / 0.588 GB, free: 21.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/0.7961, allocations: 4.917 MB / 0.5928 GB, free: 16.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002085/0.7964, allocations: 267 kB / 0.593 GB, free: 16.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001341/0.7977, allocations: 363.7 kB / 0.5934 GB, free: 16.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01323/0.811, allocations: 9.102 MB / 0.6022 GB, free: 6.215 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001391/0.8111, allocations: 59.47 kB / 0.6023 GB, free: 6.156 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004352/0.8116, allocations: 175.9 kB / 0.6025 GB, free: 5.984 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009003/0.8125, allocations: 0.8923 MB / 0.6033 GB, free: 5.086 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01271/0.8252, allocations: 7.599 MB / 0.6108 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05283/0.8781, allocations: 42.23 MB / 0.652 GB, free: 1.852 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008306/0.8864, allocations: 3.758 MB / 0.6557 GB, free: 13.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004994/0.887, allocations: 340 kB / 0.656 GB, free: 13.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.11e-05/0.8871, allocations: 51.55 kB / 0.656 GB, free: 13.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 7.925e-06/0.8871, allocations: 7.984 kB / 0.6561 GB, free: 13.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.2864/1.174, allocations: 19.39 MB / 0.675 GB, free: 106 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.23e-05/1.174, allocations: 252.1 kB / 0.6752 GB, free: 105.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005547/1.179, allocations: 3.458 MB / 0.6786 GB, free: 105.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00041/1.18, allocations: 55.39 kB / 0.6787 GB, free: 105.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001645/1.181, allocations: 2.829 MB / 0.6814 GB, free: 104.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007066/1.182, allocations: 0.7153 MB / 0.6821 GB, free: 103.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00027/1.182, allocations: 109.6 kB / 0.6822 GB, free: 103.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002422/1.183, allocations: 0.5385 MB / 0.6828 GB, free: 103.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002667/1.185, allocations: 2.074 MB / 0.6848 GB, free: 103.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004558/1.19, allocations: 5.321 MB / 0.69 GB, free: 99.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005476/1.195, allocations: 3.284 MB / 0.6932 GB, free: 99.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/1.195, allocations: 32.81 kB / 0.6932 GB, free: 99.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01439/1.21, allocations: 8.422 MB / 0.7014 GB, free: 97.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.119e-05/1.21, allocations: 56.41 kB / 0.7015 GB, free: 97.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/1.21, allocations: 115.4 kB / 0.7016 GB, free: 97.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003515/1.214, allocations: 1.379 MB / 0.7029 GB, free: 97.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003764/1.217, allocations: 1.225 MB / 0.7041 GB, free: 97.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009953/1.227, allocations: 8.708 MB / 0.7126 GB, free: 93.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005272/1.233, allocations: 323.1 kB / 0.713 GB, free: 93.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009174/1.234, allocations: 332.3 kB / 0.7133 GB, free: 93.27 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 () * Number of clocked 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.00545/1.239, allocations: 1.941 MB / 0.7152 GB, free: 92.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001375/1.241, allocations: 349.2 kB / 0.7155 GB, free: 92.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007677/1.248, allocations: 3.924 MB / 0.7193 GB, free: 90.76 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.332e-05/1.248, allocations: 25.73 kB / 0.7194 GB, free: 90.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.53e-05/1.248, allocations: 6.094 kB / 0.7194 GB, free: 90.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-05/1.248, allocations: 10.83 kB / 0.7194 GB, free: 90.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0179/1.266, allocations: 8.904 MB / 0.7281 GB, free: 87.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.038e-05/1.266, allocations: 3.781 kB / 0.7281 GB, free: 87.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001288/1.268, allocations: 259.1 kB / 0.7283 GB, free: 87.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003491/1.271, allocations: 1.22 MB / 0.7295 GB, free: 87.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004419/1.272, allocations: 33.45 kB / 0.7295 GB, free: 87.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009463/1.281, allocations: 7.856 MB / 0.7372 GB, free: 80.36 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/1.281, allocations: 4 kB / 0.7372 GB, free: 80.36 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009797/1.291, allocations: 6.809 MB / 0.7439 GB, free: 74.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001349/1.292, allocations: 406.1 kB / 0.7443 GB, free: 74.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001085/1.293, allocations: 34.73 kB / 0.7443 GB, free: 74.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002214/1.296, allocations: 117.2 kB / 0.7444 GB, free: 73.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004271/1.296, allocations: 107.6 kB / 0.7445 GB, free: 73.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001966/1.296, allocations: 47.84 kB / 0.7445 GB, free: 73.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004809/1.301, allocations: 2.449 MB / 0.7469 GB, free: 71.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.301, allocations: 0 / 0.7469 GB, free: 71.83 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006293/1.307, allocations: 1.001 MB / 0.7479 GB, free: 70.84 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 () * Number of clocked 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.01086/1.318, allocations: 7.752 MB / 0.7555 GB, free: 64.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008189/1.327, allocations: 5.18 MB / 0.7605 GB, free: 59.53 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/1.327, allocations: 0 / 0.7605 GB, free: 59.53 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003282/1.33, allocations: 1.979 MB / 0.7625 GB, free: 57.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003486/1.333, allocations: 454.4 kB / 0.7629 GB, free: 57.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2977/1.631, allocations: 112.5 MB / 0.8728 GB, free: 87.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002729/1.634, allocations: 3.173 MB / 0.8759 GB, free: 86.79 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003968/1.638, allocations: 1.821 MB / 0.8777 GB, free: 86.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001817/1.64, allocations: 1.765 MB / 0.8794 GB, free: 86.74 MB / 458.7 MB Notification: Performance of SimCode: time 1.102e-06/1.64, allocations: 0 / 0.8794 GB, free: 86.74 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/1.741, allocations: 79.16 MB / 0.9567 GB, free: 33.05 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000162/1.742, allocations: 216.4 kB / 0.9569 GB, free: 32.81 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.376/6.118, allocations: 2.812 kB / 0.9569 GB, free: 32.81 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