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.00222/0.00222, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.127/2.127, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001125/0.001125, allocations: 98.8 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003721, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09313/0.09354, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.3205/0.4141, allocations: 43.46 MB / 418.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03179/0.4459, allocations: 10.81 MB / 428.9 MB, free: 5.023 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01103/0.457, allocations: 223.2 kB / 429.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008402/0.4655, allocations: 2.144 MB / 431.3 MB, free: 3.387 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0263/0.4918, allocations: 6.339 MB / 437.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004562/0.4964, allocations: 0.7177 MB / 438.3 MB, free: 12.55 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.07163/0.5681, allocations: 26.36 MB / 464.7 MB, free: 2.168 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01036/0.5785, allocations: 4.642 MB / 469.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003696/0.5823, allocations: 1.168 MB / 470.5 MB, free: 12.31 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00392/0.5863, allocations: 1.554 MB / 472 MB, free: 10.75 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001152/0.5875, allocations: 156 kB / 472.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003392/0.5909, allocations: 0.9207 MB / 473.1 MB, free: 9.68 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003344/0.5943, allocations: 1.769 MB / 474.9 MB, free: 7.906 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001829/0.5962, allocations: 0.9206 MB / 475.8 MB, free: 6.977 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01119/0.6074, allocations: 6.449 MB / 482.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.6074, allocations: 0 / 482.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.6074, allocations: 0 / 482.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002857/0.6077, allocations: 0 / 482.3 MB, free: 0.5117 MB / 346.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.02037/0.6281, allocations: 4.824 MB / 487.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.6282, allocations: 8.031 kB / 487.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002576/0.6308, allocations: 0.744 MB / 487.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3397/0.9705, allocations: 14.58 MB / 0.4906 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/0.9846, allocations: 4.002 MB / 0.4946 GB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/0.985, allocations: 242.3 kB / 0.4948 GB, free: 7.949 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001593/0.9866, allocations: 343.6 kB / 0.4951 GB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02787/1.014, allocations: 10.29 MB / 0.5052 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002239/1.015, allocations: 51.58 kB / 0.5052 GB, free: 12.6 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008722/1.016, allocations: 151.9 kB / 0.5053 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006415/1.022, allocations: 2.037 MB / 0.5073 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02764/1.05, allocations: 8.728 MB / 0.5159 GB, free: 1.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3457/1.395, allocations: 39.45 MB / 0.5544 GB, free: 108.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01552/1.411, allocations: 4.001 MB / 0.5583 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001003/1.412, allocations: 0.6561 MB / 0.5589 GB, free: 106.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.33e-05/1.412, allocations: 56.39 kB / 0.559 GB, free: 106.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 5.16e-06/1.412, allocations: 0 / 0.559 GB, free: 106.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=210): time 0.09931/1.512, allocations: 21.82 MB / 0.5803 GB, free: 96.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/1.512, allocations: 256.1 kB / 0.5805 GB, free: 96.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/1.522, allocations: 4.509 MB / 0.585 GB, free: 91.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005794/1.523, allocations: 58.88 kB / 0.585 GB, free: 91.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002617/1.525, allocations: 3.129 MB / 0.5881 GB, free: 88.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00134/1.527, allocations: 0.7918 MB / 0.5888 GB, free: 87.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006542/1.527, allocations: 122.8 kB / 0.589 GB, free: 87.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003759/1.528, allocations: 0.559 MB / 0.5895 GB, free: 87.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005563/1.533, allocations: 2.319 MB / 0.5918 GB, free: 84.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007813/1.541, allocations: 5.838 MB / 0.5975 GB, free: 77.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007927/1.549, allocations: 3.617 MB / 0.601 GB, free: 73.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.84e-05/1.549, allocations: 36 kB / 0.601 GB, free: 73.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=781) (initialization): time 0.02748/1.577, allocations: 9.563 MB / 0.6104 GB, free: 64.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.772e-05/1.577, allocations: 56.22 kB / 0.6104 GB, free: 64.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001458/1.577, allocations: 128 kB / 0.6105 GB, free: 64.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01056/1.588, allocations: 2.116 MB / 0.6126 GB, free: 61.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007448/1.595, allocations: 1.294 MB / 0.6139 GB, free: 60.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03277/1.628, allocations: 16.39 MB / 0.6299 GB, free: 43.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00667/1.635, allocations: 355.5 kB / 0.6302 GB, free: 43.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008389/1.636, allocations: 356 kB / 0.6306 GB, free: 43.14 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 565 * 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 (693): * Single equations (assignments): 687 * 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.004599/1.64, allocations: 2.232 MB / 0.6327 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009157/1.641, allocations: 387 kB / 0.6331 GB, free: 40.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01265/1.654, allocations: 4.412 MB / 0.6374 GB, free: 36.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.165e-05/1.654, allocations: 20 kB / 0.6374 GB, free: 36.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/1.654, allocations: 8 kB / 0.6375 GB, free: 36.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.158e-05/1.654, allocations: 7.969 kB / 0.6375 GB, free: 36.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02725/1.681, allocations: 10.4 MB / 0.6476 GB, free: 25.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.416e-05/1.681, allocations: 0 / 0.6476 GB, free: 25.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002837/1.684, allocations: 303.5 kB / 0.6479 GB, free: 25.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006572/1.691, allocations: 1.356 MB / 0.6492 GB, free: 23.94 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003928/1.691, allocations: 36 kB / 0.6493 GB, free: 23.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01835/1.71, allocations: 8.656 MB / 0.6577 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.71, allocations: 0 / 0.6577 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01831/1.728, allocations: 7.55 MB / 0.6651 GB, free: 7.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002624/1.731, allocations: 0.7576 MB / 0.6658 GB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008211/1.731, allocations: 40 kB / 0.6659 GB, free: 6.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002935/1.734, allocations: 128.8 kB / 0.666 GB, free: 6.535 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006066/1.735, allocations: 125 kB / 0.6661 GB, free: 6.414 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002253/1.735, allocations: 57.08 kB / 0.6662 GB, free: 6.359 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00562/1.741, allocations: 2.885 MB / 0.669 GB, free: 3.469 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.741, allocations: 0 / 0.669 GB, free: 3.469 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006962/1.748, allocations: 1.169 MB / 0.6701 GB, free: 2.305 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 {(5,72.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02142/1.769, allocations: 8.493 MB / 0.6784 GB, free: 9.762 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01674/1.786, allocations: 6.163 MB / 0.6844 GB, free: 3.582 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/1.786, allocations: 0 / 0.6844 GB, free: 3.582 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007511/1.794, allocations: 2.257 MB / 0.6866 GB, free: 1.316 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004619/1.798, allocations: 0.5296 MB / 0.6872 GB, free: 0.793 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4069/2.205, allocations: 125.9 MB / 0.8101 GB, free: 53.44 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005279/2.211, allocations: 3.631 MB / 0.8136 GB, free: 52.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004235/2.215, allocations: 2.143 MB / 0.8157 GB, free: 50.38 MB / 442.7 MB Notification: Performance of SimCode: time 1.383e-06/2.215, allocations: 0 / 0.8157 GB, free: 50.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.888/7.103, allocations: 128.1 MB / 0.9408 GB, free: 87.61 MB / 442.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