Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008716/0.0008718, allocations: 88.39 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008255/0.0008254, allocations: 183.1 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 223.2 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002655/0.0002655, allocations: 6.906 kB / 300.9 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1172, allocations: 50.43 MB / 351.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.0457/0.1629, allocations: 45.64 MB / 397 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02727/0.1902, allocations: 10.27 MB / 407.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01206/0.2024, allocations: 223.4 kB / 407.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01021/0.2126, allocations: 2.375 MB / 409.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02313/0.2358, allocations: 7.066 MB / 416.9 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00459/0.2404, allocations: 0.6943 MB / 417.6 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3434/0.5839, allocations: 61.21 MB / 478.8 MB, free: 7.789 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0083/0.5922, allocations: 4.631 MB / 483.5 MB, free: 4.508 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004247/0.5965, allocations: 1.372 MB / 484.8 MB, free: 3.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004214/0.6007, allocations: 2.144 MB / 487 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001227/0.602, allocations: 148 kB / 487.1 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002871/0.6049, allocations: 0.9451 MB / 488.1 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002963/0.6079, allocations: 1.85 MB / 489.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002164/0.61, allocations: 0.8905 MB / 490.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007703/0.6178, allocations: 6.224 MB / 497 MB, free: 10.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.6178, allocations: 4 kB / 497 MB, free: 10.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.6178, allocations: 0 / 497 MB, free: 10.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002952/0.6181, allocations: 0 / 497 MB, free: 10.1 MB / 382.1 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.01477/0.6329, allocations: 4.615 MB / 0.4899 GB, free: 5.832 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.633, allocations: 8.031 kB / 0.4899 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003369/0.6363, allocations: 0.7332 MB / 0.4906 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1276/0.764, allocations: 12.69 MB / 0.503 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01182/0.7758, allocations: 4.026 MB / 0.5069 GB, free: 6.219 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003182/0.7762, allocations: 242.2 kB / 0.5072 GB, free: 6.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001935/0.7782, allocations: 334.4 kB / 0.5075 GB, free: 5.871 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02207/0.8002, allocations: 9.889 MB / 0.5171 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000197/0.8005, allocations: 45.22 kB / 0.5172 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004694/0.801, allocations: 155.6 kB / 0.5173 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003549/0.8046, allocations: 1.962 MB / 0.5193 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01998/0.8246, allocations: 8.311 MB / 0.5274 GB, free: 6.707 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05396/0.8785, allocations: 38.33 MB / 0.5648 GB, free: 3.387 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008443/0.887, allocations: 3.811 MB / 0.5685 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002806/0.8899, allocations: 2.058 MB / 0.5705 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007018/0.8906, allocations: 0.6543 MB / 0.5712 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.633e-05/0.8907, allocations: 47.41 kB / 0.5712 GB, free: 12.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=166): time 5.059e-06/0.8907, allocations: 0 / 0.5712 GB, free: 12.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=201): time 0.2768/1.167, allocations: 20.95 MB / 0.5917 GB, free: 163.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/1.168, allocations: 252.5 kB / 0.5919 GB, free: 163.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007363/1.175, allocations: 4.168 MB / 0.596 GB, free: 163.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006014/1.176, allocations: 58.14 kB / 0.596 GB, free: 163.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002432/1.178, allocations: 3.159 MB / 0.5991 GB, free: 161.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001078/1.179, allocations: 0.76 MB / 0.5999 GB, free: 160.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002939/1.179, allocations: 117.1 kB / 0.6 GB, free: 160.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002923/1.18, allocations: 0.552 MB / 0.6005 GB, free: 160.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003265/1.183, allocations: 2.254 MB / 0.6027 GB, free: 159.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004324/1.187, allocations: 5.718 MB / 0.6083 GB, free: 154.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004737/1.192, allocations: 3.516 MB / 0.6117 GB, free: 153.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.333e-05/1.192, allocations: 33.88 kB / 0.6118 GB, free: 153.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01726/1.21, allocations: 9.513 MB / 0.6211 GB, free: 148.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.456e-05/1.21, allocations: 56 kB / 0.6211 GB, free: 148.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001277/1.21, allocations: 120 kB / 0.6212 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005281/1.215, allocations: 2.095 MB / 0.6233 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003809/1.219, allocations: 1.254 MB / 0.6245 GB, free: 144.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01788/1.237, allocations: 15.9 MB / 0.64 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005188/1.242, allocations: 348.6 kB / 0.6404 GB, free: 128.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00114/1.243, allocations: 352.7 kB / 0.6407 GB, free: 128 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (671): * Single equations (assignments): 665 * 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 {(2,100.0%) 36,(2,100.0%) 12} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.004689/1.248, allocations: 2.17 MB / 0.6428 GB, free: 125.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/1.249, allocations: 375.1 kB / 0.6432 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008038/1.257, allocations: 4.282 MB / 0.6473 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.532e-05/1.257, allocations: 20 kB / 0.6474 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.323e-05/1.257, allocations: 13.97 kB / 0.6474 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.871e-05/1.257, allocations: 18.91 kB / 0.6474 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01905/1.276, allocations: 10.09 MB / 0.6573 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-05/1.276, allocations: 5.953 kB / 0.6573 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/1.278, allocations: 283.6 kB / 0.6575 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003311/1.281, allocations: 1.357 MB / 0.6589 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002977/1.281, allocations: 35.98 kB / 0.6589 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/1.291, allocations: 8.336 MB / 0.667 GB, free: 100.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/1.292, allocations: 0 / 0.667 GB, free: 100.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/1.302, allocations: 7.219 MB / 0.6741 GB, free: 93.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/1.303, allocations: 432.1 kB / 0.6745 GB, free: 93.13 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/1.304, allocations: 41.97 kB / 0.6745 GB, free: 93.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/1.306, allocations: 123.8 kB / 0.6747 GB, free: 92.97 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003596/1.307, allocations: 113.2 kB / 0.6748 GB, free: 92.86 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/1.307, allocations: 55.98 kB / 0.6748 GB, free: 92.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004415/1.311, allocations: 2.618 MB / 0.6774 GB, free: 90.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.311, allocations: 0 / 0.6774 GB, free: 90.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006308/1.318, allocations: 1.121 MB / 0.6785 GB, free: 89.06 MB / 462.1 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 (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 {(5,72.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01126/1.329, allocations: 7.899 MB / 0.6862 GB, free: 81.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009101/1.338, allocations: 5.98 MB / 0.692 GB, free: 75.14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.338, allocations: 0 / 0.692 GB, free: 75.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003737/1.342, allocations: 2.218 MB / 0.6942 GB, free: 72.91 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005087/1.347, allocations: 0.5602 MB / 0.6947 GB, free: 72.36 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07395/1.421, allocations: 38.73 MB / 0.7326 GB, free: 29.85 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005744/1.427, allocations: 3.438 MB / 0.7359 GB, free: 26.38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004831/1.432, allocations: 1.888 MB / 0.7378 GB, free: 24.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003121/1.435, allocations: 2.014 MB / 0.7397 GB, free: 22.46 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/1.435, allocations: 0 / 0.7397 GB, free: 22.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4019/1.837, allocations: 90.25 MB / 0.8279 GB, free: 101.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/1.837, allocations: 240.8 kB / 0.8281 GB, free: 101.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.249/6.086, allocations: 0 / 0.8281 GB, free: 101.2 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat does not exist to compare? outputFormat=mat