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.001139/0.001139, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 221.5 MB / 230.3 MB, free: 7.582 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.000895/0.000895, allocations: 88.56 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.127e-05/2.128e-05, allocations: 0 / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1127, allocations: 50.41 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3609/0.4737, allocations: 97.84 MB / 485.4 MB, free: 12.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.474, allocations: 83.95 kB / 485.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4858/0.9599, allocations: 91.97 MB / 0.5639 GB, free: 96.56 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.9599, allocations: 0 / 0.5639 GB, free: 96.56 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003367/0.9603, allocations: 92.2 kB / 0.564 GB, free: 96.56 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.01675/0.977, allocations: 4.402 MB / 0.5683 GB, free: 94.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.9771, allocations: 10.25 kB / 0.5683 GB, free: 94.74 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02655/1.004, allocations: 6.717 MB / 0.5749 GB, free: 94.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01756/1.021, allocations: 5.781 MB / 0.5805 GB, free: 93.79 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003107/1.022, allocations: 137.7 kB / 0.5806 GB, free: 93.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002487/1.024, allocations: 256.2 kB / 0.5809 GB, free: 93.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0127/1.037, allocations: 5.981 MB / 0.5867 GB, free: 93.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02042/1.057, allocations: 9.181 MB / 0.5957 GB, free: 89.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002983/1.058, allocations: 66.5 kB / 0.5958 GB, free: 89.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009391/1.059, allocations: 27.38 kB / 0.5958 GB, free: 89.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001484/1.06, allocations: 0.9756 MB / 0.5967 GB, free: 89.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04407/1.104, allocations: 43.31 MB / 0.639 GB, free: 57.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003118/1.107, allocations: 3.098 MB / 0.6421 GB, free: 55.54 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001787/1.109, allocations: 1.933 MB / 0.6439 GB, free: 54.13 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000555/1.11, allocations: 0.6488 MB / 0.6446 GB, free: 53.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/1.11, allocations: 55.81 kB / 0.6446 GB, free: 53.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=166): time 4.168e-06/1.11, allocations: 0 / 0.6446 GB, free: 53.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=201): time 0.03364/1.143, allocations: 17.96 MB / 0.6622 GB, free: 37.83 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.138e-05/1.144, allocations: 256.6 kB / 0.6624 GB, free: 37.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004625/1.148, allocations: 3.175 MB / 0.6655 GB, free: 34.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004865/1.149, allocations: 29.7 kB / 0.6655 GB, free: 34.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001559/1.15, allocations: 3.218 MB / 0.6687 GB, free: 31.79 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007547/1.151, allocations: 0.7468 MB / 0.6694 GB, free: 31.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002118/1.151, allocations: 0 / 0.6694 GB, free: 31.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002534/1.152, allocations: 0.5524 MB / 0.67 GB, free: 30.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/1.154, allocations: 2.086 MB / 0.672 GB, free: 28.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003761/1.158, allocations: 5.649 MB / 0.6775 GB, free: 21.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003817/1.162, allocations: 3.396 MB / 0.6808 GB, free: 17.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-05/1.162, allocations: 39.95 kB / 0.6809 GB, free: 17.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01492/1.177, allocations: 8.566 MB / 0.6892 GB, free: 9.219 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.921e-05/1.177, allocations: 63.94 kB / 0.6893 GB, free: 9.156 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001392/1.177, allocations: 128 kB / 0.6894 GB, free: 9.031 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005313/1.182, allocations: 1.958 MB / 0.6913 GB, free: 7.066 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004421/1.187, allocations: 1.302 MB / 0.6926 GB, free: 5.762 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01861/1.205, allocations: 14.14 MB / 0.7064 GB, free: 7.285 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004919/1.21, allocations: 219.4 kB / 0.7066 GB, free: 7.066 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001266/1.212, allocations: 372 kB / 0.707 GB, free: 6.703 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * 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 (699): * Single equations (assignments): 693 * 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 {(5,80.0%) 33,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.000916/1.212, allocations: 430.7 kB / 0.7074 GB, free: 6.277 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007847/1.22, allocations: 4.161 MB / 0.7114 GB, free: 2.102 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009341/1.221, allocations: 351.4 kB / 0.7118 GB, free: 1.754 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2914/1.513, allocations: 3.886 MB / 0.7156 GB, free: 98.76 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.973e-05/1.513, allocations: 24.61 kB / 0.7156 GB, free: 98.76 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.319e-05/1.513, allocations: 8.281 kB / 0.7156 GB, free: 98.76 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.946e-05/1.513, allocations: 10.33 kB / 0.7156 GB, free: 98.76 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02031/1.533, allocations: 8.764 MB / 0.7242 GB, free: 98.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/1.533, allocations: 0.9375 kB / 0.7242 GB, free: 98.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/1.535, allocations: 285.2 kB / 0.7244 GB, free: 98.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00379/1.539, allocations: 1.186 MB / 0.7256 GB, free: 98.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002449/1.539, allocations: 7.375 kB / 0.7256 GB, free: 98.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/1.55, allocations: 7.034 MB / 0.7325 GB, free: 96.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.55, allocations: 1.406 kB / 0.7325 GB, free: 96.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009879/1.56, allocations: 6.825 MB / 0.7391 GB, free: 96.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/1.561, allocations: 386.4 kB / 0.7395 GB, free: 96.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000449/1.562, allocations: 7.25 kB / 0.7395 GB, free: 96.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/1.563, allocations: 88.94 kB / 0.7396 GB, free: 96.17 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003352/1.563, allocations: 120.4 kB / 0.7397 GB, free: 96.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/1.564, allocations: 52.97 kB / 0.7398 GB, free: 96.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003231/1.567, allocations: 2.148 MB / 0.7419 GB, free: 95.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.567, allocations: 2.844 kB / 0.7419 GB, free: 95.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005334/1.572, allocations: 0.9561 MB / 0.7428 GB, free: 95.4 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.009312/1.582, allocations: 7.738 MB / 0.7504 GB, free: 92.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009388/1.591, allocations: 5.636 MB / 0.7559 GB, free: 90.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.948e-06/1.591, allocations: 0 / 0.7559 GB, free: 90.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003176/1.594, allocations: 1.963 MB / 0.7578 GB, free: 89.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/1.598, allocations: 470.8 kB / 0.7582 GB, free: 89.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0242/1.622, allocations: 9.523 MB / 0.7675 GB, free: 86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003502/1.625, allocations: 3.539 MB / 0.771 GB, free: 84.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004611/1.63, allocations: 1.92 MB / 0.7729 GB, free: 84.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002199/1.632, allocations: 2.006 MB / 0.7748 GB, free: 83 MB / 442.7 MB Notification: Performance of SimCode: time 2.294e-06/1.632, allocations: 0 / 0.7748 GB, free: 83 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1277/1.76, allocations: 83.29 MB / 0.8562 GB, free: 13.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/1.76, allocations: 159 kB / 0.8563 GB, free: 13.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.552/6.312, allocations: 0 / 0.8563 GB, free: 13.71 MB / 442.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