Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001519/0.001519, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.96/1.96, allocations: 205.4 MB / 222.5 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001149/0.001149, allocations: 95.39 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003935/0.0003935, allocations: 12 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3339, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1597/0.4937, allocations: 97.69 MB / 472.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003472/0.4941, allocations: 95.94 kB / 472.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6496/1.144, allocations: 94.85 MB / 0.554 GB, free: 61.81 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.144, allocations: 0 / 0.554 GB, free: 61.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003228/1.144, allocations: 88 kB / 0.5541 GB, free: 61.72 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: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.01921/1.163, allocations: 4.903 MB / 0.5589 GB, free: 56.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/1.163, allocations: 8.031 kB / 0.5589 GB, free: 56.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003446/1.167, allocations: 0.787 MB / 0.5596 GB, free: 55.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04737/1.214, allocations: 6.725 MB / 0.5662 GB, free: 49.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02228/1.237, allocations: 6.216 MB / 0.5723 GB, free: 42.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004407/1.237, allocations: 328.6 kB / 0.5726 GB, free: 42.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002548/1.24, allocations: 439.7 kB / 0.573 GB, free: 42.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03074/1.27, allocations: 10.52 MB / 0.5833 GB, free: 30.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003317/1.271, allocations: 63.45 kB / 0.5833 GB, free: 30.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00181/1.273, allocations: 207.9 kB / 0.5835 GB, free: 30.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002167/1.275, allocations: 1.011 MB / 0.5845 GB, free: 29.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02522/1.3, allocations: 8.691 MB / 0.593 GB, free: 20.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07515/1.375, allocations: 46.16 MB / 0.6381 GB, free: 5.094 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0163/1.392, allocations: 4.003 MB / 0.642 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001133/1.393, allocations: 0.6594 MB / 0.6426 GB, free: 172 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.544e-05/1.393, allocations: 47.55 kB / 0.6427 GB, free: 116 kB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 5.961e-06/1.393, allocations: 0 / 0.6427 GB, free: 116 kB / 410.7 MB Notification: Performance of matching and sorting (n=210): time 0.3941/1.787, allocations: 21.29 MB / 0.6635 GB, free: 90.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/1.787, allocations: 254.8 kB / 0.6637 GB, free: 90.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/1.798, allocations: 3.754 MB / 0.6674 GB, free: 89.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006907/1.799, allocations: 57.02 kB / 0.6674 GB, free: 89.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003576/1.802, allocations: 3.142 MB / 0.6705 GB, free: 88.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001459/1.804, allocations: 0.7983 MB / 0.6713 GB, free: 87.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009145/1.805, allocations: 119.3 kB / 0.6714 GB, free: 87.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005481/1.805, allocations: 0.5621 MB / 0.6719 GB, free: 87.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006089/1.811, allocations: 2.262 MB / 0.6741 GB, free: 87.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009035/1.82, allocations: 5.804 MB / 0.6798 GB, free: 82.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008542/1.829, allocations: 3.562 MB / 0.6833 GB, free: 80.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/1.829, allocations: 39.02 kB / 0.6833 GB, free: 80.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=785) (initialization): time 0.02898/1.858, allocations: 9.39 MB / 0.6925 GB, free: 77.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/1.858, allocations: 61.06 kB / 0.6926 GB, free: 77.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001939/1.859, allocations: 124.3 kB / 0.6927 GB, free: 77.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01005/1.869, allocations: 1.979 MB / 0.6946 GB, free: 77.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007718/1.876, allocations: 1.302 MB / 0.6959 GB, free: 77.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03077/1.907, allocations: 15.53 MB / 0.711 GB, free: 65.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007476/1.915, allocations: 346.3 kB / 0.7114 GB, free: 64.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001333/1.916, allocations: 363.2 kB / 0.7117 GB, free: 64.49 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 569 * Number of states: 0 () * Number of discrete variables: 33 (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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (697): * Single equations (assignments): 691 * 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.005294/1.921, allocations: 2.234 MB / 0.7139 GB, free: 62.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001084/1.922, allocations: 390.9 kB / 0.7143 GB, free: 62.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01285/1.935, allocations: 4.191 MB / 0.7184 GB, free: 58.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.025e-05/1.935, allocations: 20 kB / 0.7184 GB, free: 58.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.268e-05/1.936, allocations: 10.56 kB / 0.7184 GB, free: 58.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.413e-05/1.936, allocations: 14.22 kB / 0.7184 GB, free: 58.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02894/1.965, allocations: 10.02 MB / 0.7282 GB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-05/1.965, allocations: 0 / 0.7282 GB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002817/1.967, allocations: 293.7 kB / 0.7285 GB, free: 50.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00633/1.974, allocations: 1.229 MB / 0.7297 GB, free: 49.49 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00049/1.974, allocations: 32 kB / 0.7297 GB, free: 49.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01682/1.991, allocations: 7.865 MB / 0.7374 GB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/1.991, allocations: 7.938 kB / 0.7374 GB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01846/2.01, allocations: 7.224 MB / 0.7444 GB, free: 36.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002799/2.013, allocations: 0.7271 MB / 0.7452 GB, free: 35.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001303/2.014, allocations: 36 kB / 0.7452 GB, free: 35.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003455/2.017, allocations: 123.8 kB / 0.7453 GB, free: 35.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006946/2.018, allocations: 120.5 kB / 0.7454 GB, free: 35.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002169/2.018, allocations: 57.62 kB / 0.7455 GB, free: 35.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006407/2.025, allocations: 2.651 MB / 0.7481 GB, free: 32.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.51e-07/2.025, allocations: 0 / 0.7481 GB, free: 32.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007855/2.033, allocations: 1.138 MB / 0.7492 GB, free: 31.52 MB / 410.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 (157): * Single equations (assignments): 153 * 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.01943/2.052, allocations: 8.164 MB / 0.7572 GB, free: 23.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01404/2.066, allocations: 6.024 MB / 0.763 GB, free: 17.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/2.066, allocations: 4 kB / 0.763 GB, free: 17.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005529/2.072, allocations: 2.112 MB / 0.7651 GB, free: 15.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004676/2.077, allocations: 0.5313 MB / 0.7656 GB, free: 14.63 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.429/2.506, allocations: 125.4 MB / 0.8881 GB, free: 49.98 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008682/2.514, allocations: 3.626 MB / 0.8916 GB, free: 49.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005296/2.52, allocations: 2.129 MB / 0.8937 GB, free: 49.17 MB / 442.7 MB Notification: Performance of SimCode: time 1.192e-06/2.52, allocations: 3.906 kB / 0.8937 GB, free: 49.17 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.683/7.203, allocations: 127.3 MB / 1.018 GB, free: 130.2 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat does not exist to compare? outputFormat=mat