Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001747/0.001747, allocations: 196 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.508/1.508, 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.00088/0.00088, allocations: 92.12 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.593e-05/2.619e-05, allocations: 4 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09592, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4173/0.5132, allocations: 99.15 MB / 0.4895 GB, free: 6.617 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.5135, allocations: 90.06 kB / 0.4896 GB, free: 6.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.491/1.005, allocations: 95.94 MB / 0.5833 GB, free: 77.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.643e-06/1.005, allocations: 0 / 0.5833 GB, free: 77.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001767/1.005, allocations: 87.16 kB / 0.5834 GB, free: 77.34 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.01112/1.016, allocations: 4.454 MB / 0.5877 GB, free: 75.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/1.016, allocations: 10.06 kB / 0.5878 GB, free: 75.57 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001889/1.018, allocations: 0.7632 MB / 0.5885 GB, free: 75.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02461/1.042, allocations: 6.705 MB / 0.595 GB, free: 75.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0156/1.058, allocations: 5.17 MB / 0.6001 GB, free: 74.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003203/1.058, allocations: 320.8 kB / 0.6004 GB, free: 74.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00212/1.061, allocations: 432 kB / 0.6008 GB, free: 74.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02268/1.083, allocations: 10.14 MB / 0.6107 GB, free: 72.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003214/1.084, allocations: 65.09 kB / 0.6108 GB, free: 72.04 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000991/1.085, allocations: 202.8 kB / 0.611 GB, free: 72.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00171/1.086, allocations: 0.9769 MB / 0.6119 GB, free: 72.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01812/1.104, allocations: 8.272 MB / 0.62 GB, free: 71.99 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04645/1.151, allocations: 45.14 MB / 0.6641 GB, free: 40.51 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007901/1.159, allocations: 3.864 MB / 0.6679 GB, free: 38.94 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002186/1.161, allocations: 1.971 MB / 0.6698 GB, free: 38.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000614/1.162, allocations: 0.6485 MB / 0.6704 GB, free: 37.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/1.162, allocations: 54.41 kB / 0.6705 GB, free: 37.46 MB / 442.7 MB Notification: Performance of pre-optimization done (n=166): time 4.679e-06/1.162, allocations: 0 / 0.6705 GB, free: 37.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=201): time 0.04471/1.207, allocations: 18.46 MB / 0.6885 GB, free: 30.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.672e-05/1.207, allocations: 252.7 kB / 0.6887 GB, free: 30.69 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00496/1.212, allocations: 3.633 MB / 0.6923 GB, free: 29.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000253/1.212, allocations: 53.2 kB / 0.6923 GB, free: 29.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001684/1.214, allocations: 3.174 MB / 0.6954 GB, free: 26.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006692/1.214, allocations: 0.7596 MB / 0.6962 GB, free: 26.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/1.215, allocations: 117.3 kB / 0.6963 GB, free: 26.18 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002724/1.215, allocations: 0.5574 MB / 0.6968 GB, free: 25.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002671/1.217, allocations: 2.147 MB / 0.6989 GB, free: 25.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004169/1.222, allocations: 5.621 MB / 0.7044 GB, free: 19.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003768/1.225, allocations: 3.455 MB / 0.7078 GB, free: 16.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.573e-05/1.226, allocations: 36 kB / 0.7078 GB, free: 16.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01466/1.24, allocations: 9.256 MB / 0.7169 GB, free: 8.188 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.364e-05/1.24, allocations: 56 kB / 0.7169 GB, free: 8.133 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001102/1.24, allocations: 121.1 kB / 0.717 GB, free: 8.016 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005/1.245, allocations: 1.974 MB / 0.719 GB, free: 6.547 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003725/1.249, allocations: 1.261 MB / 0.7202 GB, free: 5.445 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01971/1.269, allocations: 14.99 MB / 0.7348 GB, free: 8.031 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004921/1.274, allocations: 332.4 kB / 0.7352 GB, free: 7.746 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000888/1.275, allocations: 355.3 kB / 0.7355 GB, free: 7.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 556 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (675): * Single equations (assignments): 669 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 35,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.0009508/1.276, allocations: 0.5405 MB / 0.736 GB, free: 6.863 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006973/1.276, allocations: 379.1 kB / 0.7364 GB, free: 6.488 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00793/1.284, allocations: 4.045 MB / 0.7403 GB, free: 3.254 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.403e-05/1.284, allocations: 20.94 kB / 0.7404 GB, free: 3.234 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.828e-05/1.284, allocations: 11.94 kB / 0.7404 GB, free: 3.223 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.139e-05/1.284, allocations: 11.59 kB / 0.7404 GB, free: 3.219 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3281/1.613, allocations: 9.702 MB / 0.7498 GB, free: 82.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.152e-05/1.613, allocations: 1.844 kB / 0.7498 GB, free: 82.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001534/1.614, allocations: 282.3 kB / 0.7501 GB, free: 82.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003556/1.618, allocations: 1.218 MB / 0.7513 GB, free: 82.05 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000378/1.618, allocations: 33.47 kB / 0.7513 GB, free: 82.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/1.629, allocations: 7.544 MB / 0.7587 GB, free: 80.79 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.629, allocations: 6.812 kB / 0.7587 GB, free: 80.79 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01091/1.64, allocations: 6.991 MB / 0.7655 GB, free: 80.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/1.642, allocations: 421.9 kB / 0.7659 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007536/1.642, allocations: 33.25 kB / 0.766 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001775/1.644, allocations: 121.4 kB / 0.7661 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004046/1.645, allocations: 116.2 kB / 0.7662 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/1.645, allocations: 50.11 kB / 0.7662 GB, free: 80.05 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004878/1.65, allocations: 2.556 MB / 0.7687 GB, free: 79.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.31e-07/1.65, allocations: 0 / 0.7687 GB, free: 79.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007974/1.658, allocations: 1.111 MB / 0.7698 GB, free: 79.84 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 (147): * Single equations (assignments): 143 * 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.01352/1.671, allocations: 7.927 MB / 0.7776 GB, free: 78.44 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01207/1.683, allocations: 5.805 MB / 0.7832 GB, free: 78.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.683, allocations: 4.406 kB / 0.7832 GB, free: 78.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004204/1.688, allocations: 2.022 MB / 0.7852 GB, free: 77.87 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003966/1.692, allocations: 0.5391 MB / 0.7857 GB, free: 77.85 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02649/1.718, allocations: 9.765 MB / 0.7953 GB, free: 74.67 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004937/1.723, allocations: 3.535 MB / 0.7987 GB, free: 73.35 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005374/1.728, allocations: 1.89 MB / 0.8006 GB, free: 73.31 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003538/1.732, allocations: 2.023 MB / 0.8026 GB, free: 71.67 MB / 458.7 MB Notification: Performance of SimCode: time 1.122e-06/1.732, allocations: 3.688 kB / 0.8026 GB, free: 71.67 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1386/1.871, allocations: 89.23 MB / 0.8897 GB, free: 17.41 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/1.871, allocations: 204.5 kB / 0.8899 GB, free: 17.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.225/7.096, allocations: 0 / 0.8899 GB, free: 17.18 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat does not exist to compare? outputFormat=mat