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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 221.3 MB / 235.5 MB, free: 2.965 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008975/0.0008975, allocations: 84.69 kB / 286.5 MB, free: 256 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.872e-05/3.897e-05, allocations: 4 kB / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.11, allocations: 50.4 MB / 394.3 MB, free: 1.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4075/0.5175, allocations: 98.51 MB / 492.8 MB, free: 4.996 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.5179, allocations: 83.95 kB / 492.9 MB, free: 4.914 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5071/1.025, allocations: 93.7 MB / 0.5729 GB, free: 97.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.025, allocations: 0 / 0.5729 GB, free: 97.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002142/1.025, allocations: 86.78 kB / 0.573 GB, free: 97.24 MB / 426.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.01085/1.036, allocations: 4.409 MB / 0.5773 GB, free: 95.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/1.036, allocations: 11.66 kB / 0.5773 GB, free: 95.4 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002164/1.038, allocations: 0.7602 MB / 0.578 GB, free: 95.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02432/1.063, allocations: 6.712 MB / 0.5846 GB, free: 95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01547/1.078, allocations: 5.801 MB / 0.5902 GB, free: 94.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003709/1.079, allocations: 318.9 kB / 0.5905 GB, free: 94.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00236/1.081, allocations: 434.9 kB / 0.591 GB, free: 94.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02096/1.102, allocations: 10.14 MB / 0.6009 GB, free: 89.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002027/1.102, allocations: 74.36 kB / 0.6009 GB, free: 89.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007419/1.103, allocations: 198.9 kB / 0.6011 GB, free: 88.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001133/1.104, allocations: 0.9667 MB / 0.6021 GB, free: 88.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01398/1.118, allocations: 8.282 MB / 0.6102 GB, free: 86.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04518/1.163, allocations: 45.14 MB / 0.6542 GB, free: 44.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007785/1.171, allocations: 3.861 MB / 0.658 GB, free: 40.99 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002142/1.173, allocations: 1.981 MB / 0.6599 GB, free: 39.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005638/1.174, allocations: 0.6505 MB / 0.6606 GB, free: 38.26 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/1.174, allocations: 51.5 kB / 0.6606 GB, free: 38.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=166): time 4.599e-06/1.174, allocations: 0 / 0.6606 GB, free: 38.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=201): time 0.05551/1.23, allocations: 18.44 MB / 0.6786 GB, free: 19.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.68e-05/1.23, allocations: 260.6 kB / 0.6789 GB, free: 19.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007034/1.237, allocations: 3.624 MB / 0.6824 GB, free: 15.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005494/1.237, allocations: 57.7 kB / 0.6825 GB, free: 15.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001865/1.239, allocations: 3.176 MB / 0.6856 GB, free: 12.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009585/1.24, allocations: 0.7664 MB / 0.6863 GB, free: 11.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/1.24, allocations: 116 kB / 0.6864 GB, free: 11.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002705/1.241, allocations: 0.5538 MB / 0.687 GB, free: 11.03 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002791/1.244, allocations: 2.147 MB / 0.6891 GB, free: 8.875 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004008/1.248, allocations: 5.618 MB / 0.6946 GB, free: 1.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004715/1.252, allocations: 3.458 MB / 0.6979 GB, free: 14.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.754e-05/1.252, allocations: 36 kB / 0.698 GB, free: 14.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01862/1.271, allocations: 9.25 MB / 0.707 GB, free: 4.754 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.116e-05/1.271, allocations: 63.94 kB / 0.7071 GB, free: 4.691 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001352/1.271, allocations: 120 kB / 0.7072 GB, free: 4.574 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00573/1.277, allocations: 1.974 MB / 0.7091 GB, free: 2.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004326/1.281, allocations: 1.251 MB / 0.7103 GB, free: 1.336 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2931/1.575, allocations: 14.95 MB / 0.7249 GB, free: 93.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004857/1.579, allocations: 340.2 kB / 0.7253 GB, free: 93.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008686/1.58, allocations: 355.6 kB / 0.7256 GB, free: 93.05 MB / 442.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.0008535/1.581, allocations: 0.5501 MB / 0.7261 GB, free: 92.94 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000702/1.582, allocations: 374 kB / 0.7265 GB, free: 92.94 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008558/1.59, allocations: 4.047 MB / 0.7304 GB, free: 92.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.454e-05/1.591, allocations: 22.41 kB / 0.7305 GB, free: 92.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.827e-05/1.591, allocations: 7.688 kB / 0.7305 GB, free: 92.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.342e-05/1.591, allocations: 12.08 kB / 0.7305 GB, free: 92.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01802/1.609, allocations: 9.693 MB / 0.7399 GB, free: 90.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/1.609, allocations: 0 / 0.7399 GB, free: 90.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/1.61, allocations: 286.3 kB / 0.7402 GB, free: 90.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00326/1.613, allocations: 1.219 MB / 0.7414 GB, free: 89.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002343/1.613, allocations: 40.36 kB / 0.7415 GB, free: 89.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009121/1.623, allocations: 7.538 MB / 0.7488 GB, free: 86.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.623, allocations: 0.8594 kB / 0.7488 GB, free: 86.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009354/1.632, allocations: 7.001 MB / 0.7557 GB, free: 83.61 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/1.633, allocations: 427.5 kB / 0.7561 GB, free: 83.33 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005061/1.634, allocations: 27.72 kB / 0.7561 GB, free: 83.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001473/1.635, allocations: 121 kB / 0.7562 GB, free: 83.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003223/1.636, allocations: 117 kB / 0.7563 GB, free: 83.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001383/1.636, allocations: 49.92 kB / 0.7564 GB, free: 83.26 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00365/1.64, allocations: 2.554 MB / 0.7589 GB, free: 82.35 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.64, allocations: 0 / 0.7589 GB, free: 82.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005195/1.645, allocations: 1.105 MB / 0.7599 GB, free: 82.23 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 () * 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.009479/1.654, allocations: 7.933 MB / 0.7677 GB, free: 78.59 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009159/1.663, allocations: 5.812 MB / 0.7734 GB, free: 76.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/1.664, allocations: 0 / 0.7734 GB, free: 76.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003239/1.667, allocations: 2.027 MB / 0.7753 GB, free: 75.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003903/1.671, allocations: 0.5408 MB / 0.7759 GB, free: 75.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02586/1.697, allocations: 9.77 MB / 0.7854 GB, free: 72.24 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004927/1.702, allocations: 3.53 MB / 0.7889 GB, free: 70.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004912/1.707, allocations: 1.893 MB / 0.7907 GB, free: 68.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00289/1.709, allocations: 2.021 MB / 0.7927 GB, free: 67.07 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/1.71, allocations: 3.469 kB / 0.7927 GB, free: 67.07 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4283/2.138, allocations: 89.23 MB / 0.8798 GB, free: 88.39 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/2.138, allocations: 208.7 kB / 0.88 GB, free: 88.17 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.924/7.062, allocations: 2.344 kB / 0.88 GB, free: 88.17 MB / 458.7 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