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.002639/0.002639, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.159/2.159, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001102/0.001102, allocations: 82.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.464e-05/3.487e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4599/0.5634, allocations: 97.6 MB / 466.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.5638, allocations: 87.77 kB / 466.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7141/1.278, allocations: 94.88 MB / 0.5486 GB, free: 91.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.278, allocations: 0 / 0.5486 GB, free: 91.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004003/1.278, allocations: 92.48 kB / 0.5487 GB, free: 91.23 MB / 410.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.0206/1.299, allocations: 4.505 MB / 0.5531 GB, free: 89.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/1.299, allocations: 7.688 kB / 0.5531 GB, free: 89.36 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003876/1.303, allocations: 0.7852 MB / 0.5538 GB, free: 89.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04941/1.352, allocations: 6.728 MB / 0.5604 GB, free: 88.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02278/1.375, allocations: 6.173 MB / 0.5664 GB, free: 88.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000434/1.376, allocations: 330.4 kB / 0.5668 GB, free: 88.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002645/1.378, allocations: 449.5 kB / 0.5672 GB, free: 88.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03124/1.41, allocations: 10.43 MB / 0.5774 GB, free: 84.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003369/1.41, allocations: 62.34 kB / 0.5774 GB, free: 84.85 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002022/1.412, allocations: 214.4 kB / 0.5776 GB, free: 84.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002297/1.415, allocations: 1.01 MB / 0.5786 GB, free: 84.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02571/1.44, allocations: 8.562 MB / 0.587 GB, free: 81.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07313/1.513, allocations: 46.17 MB / 0.6321 GB, free: 43.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0147/1.528, allocations: 3.97 MB / 0.6359 GB, free: 39.87 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003939/1.532, allocations: 2.023 MB / 0.6379 GB, free: 38.01 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009231/1.533, allocations: 0.6514 MB / 0.6386 GB, free: 37.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/1.533, allocations: 47.56 kB / 0.6386 GB, free: 37.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 6.342e-06/1.533, allocations: 0 / 0.6386 GB, free: 37.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=210): time 0.09047/1.624, allocations: 18.88 MB / 0.657 GB, free: 19.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/1.624, allocations: 256.6 kB / 0.6573 GB, free: 18.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009194/1.633, allocations: 3.711 MB / 0.6609 GB, free: 15.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005935/1.634, allocations: 61.64 kB / 0.661 GB, free: 15.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002848/1.637, allocations: 3.14 MB / 0.664 GB, free: 11.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001322/1.638, allocations: 0.7932 MB / 0.6648 GB, free: 11.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008609/1.639, allocations: 123.9 kB / 0.6649 GB, free: 11.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004551/1.639, allocations: 0.5668 MB / 0.6655 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005681/1.645, allocations: 2.206 MB / 0.6676 GB, free: 8.273 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008163/1.653, allocations: 5.76 MB / 0.6733 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009397/1.663, allocations: 3.544 MB / 0.6767 GB, free: 13.19 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001482/1.663, allocations: 36 kB / 0.6768 GB, free: 13.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=785) (initialization): time 0.03283/1.696, allocations: 9.295 MB / 0.6858 GB, free: 3.844 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/1.696, allocations: 60 kB / 0.6859 GB, free: 3.785 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002257/1.696, allocations: 124 kB / 0.686 GB, free: 3.664 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0111/1.707, allocations: 1.982 MB / 0.6879 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008701/1.716, allocations: 1.298 MB / 0.6892 GB, free: 380 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3478/2.064, allocations: 14.95 MB / 0.7038 GB, free: 87.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007445/2.071, allocations: 344.9 kB / 0.7041 GB, free: 87.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001677/2.073, allocations: 369.1 kB / 0.7045 GB, free: 87.88 MB / 426.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 () * 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.002098/2.075, allocations: 0.5589 MB / 0.705 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/2.076, allocations: 386.4 kB / 0.7054 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01408/2.091, allocations: 4.16 MB / 0.7095 GB, free: 87.63 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.469e-05/2.091, allocations: 24.22 kB / 0.7095 GB, free: 87.63 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/2.091, allocations: 7.812 kB / 0.7095 GB, free: 87.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-05/2.091, allocations: 10.64 kB / 0.7095 GB, free: 87.63 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03044/2.121, allocations: 9.968 MB / 0.7192 GB, free: 85.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-05/2.121, allocations: 6.562 kB / 0.7192 GB, free: 85.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002976/2.124, allocations: 300.1 kB / 0.7195 GB, free: 85.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006355/2.131, allocations: 1.217 MB / 0.7207 GB, free: 85.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005206/2.131, allocations: 39.77 kB / 0.7208 GB, free: 85.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01662/2.148, allocations: 7.546 MB / 0.7281 GB, free: 81.81 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/2.148, allocations: 3.953 kB / 0.7281 GB, free: 81.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0184/2.166, allocations: 7.164 MB / 0.7351 GB, free: 79.06 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003013/2.169, allocations: 0.7324 MB / 0.7358 GB, free: 78.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/2.171, allocations: 31.56 kB / 0.7359 GB, free: 78.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003521/2.174, allocations: 129.2 kB / 0.736 GB, free: 78.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007583/2.175, allocations: 122.8 kB / 0.7361 GB, free: 78.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000231/2.175, allocations: 56.45 kB / 0.7362 GB, free: 78.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006587/2.182, allocations: 2.611 MB / 0.7387 GB, free: 77.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.002e-06/2.182, allocations: 0 / 0.7387 GB, free: 77.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008225/2.19, allocations: 1.142 MB / 0.7398 GB, free: 77.55 MB / 426.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 (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.01936/2.21, allocations: 8.094 MB / 0.7477 GB, free: 73.85 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01406/2.224, allocations: 5.935 MB / 0.7535 GB, free: 71.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/2.224, allocations: 0 / 0.7535 GB, free: 71.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005625/2.23, allocations: 2.07 MB / 0.7556 GB, free: 71.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004933/2.235, allocations: 0.5328 MB / 0.7561 GB, free: 70.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03512/2.27, allocations: 10.61 MB / 0.7664 GB, free: 65.74 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006873/2.277, allocations: 3.627 MB / 0.77 GB, free: 63.01 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004682/2.281, allocations: 2.134 MB / 0.7721 GB, free: 61.04 MB / 426.7 MB Notification: Performance of SimCode: time 2.375e-06/2.281, allocations: 0 / 0.7721 GB, free: 61.04 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.059/7.34, allocations: 127.3 MB / 0.8964 GB, free: 96.8 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