Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.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.Math.Nonlinear.Examples.quadratureLobatto3,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Math_Nonlinear_Examples_quadratureLobatto3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Nonlinear.Examples.quadratureLobatto3,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Math_Nonlinear_Examples_quadratureLobatto3",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.002184/0.00219, allocations: 178.9 kB / 13.65 MB, free: 1.66 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.645/2.645, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.002021/0.00202, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.446e-05/3.485e-05, allocations: 8 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4294/0.5417, allocations: 75.18 MB / 444.4 MB, free: 1.625 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.542, allocations: 75.75 kB / 444.4 MB, free: 1.586 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01803/0.5601, allocations: 3.548 MB / 448 MB, free: 14.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5601, allocations: 0 / 448 MB, free: 14.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.5601, allocations: 0 / 448 MB, free: 14.53 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005049/0.5607, allocations: 381.3 kB / 448.4 MB, free: 14.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.5607, allocations: 8.031 kB / 448.4 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.552e-05/0.5608, allocations: 30.56 kB / 448.4 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.556e-05/0.5608, allocations: 8.766 kB / 448.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.561, allocations: 165.7 kB / 448.6 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.5611, allocations: 7.953 kB / 448.6 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.5611, allocations: 3.938 kB / 448.6 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.5612, allocations: 36.81 kB / 448.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.5612, allocations: 0 / 448.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.5612, allocations: 4 kB / 448.6 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.5613, allocations: 0 / 448.6 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.173e-05/0.5613, allocations: 8 kB / 448.6 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000211/0.5615, allocations: 159.7 kB / 448.8 MB, free: 13.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.671e-05/0.5617, allocations: 36.23 kB / 448.8 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.533e-05/0.5617, allocations: 12.81 kB / 448.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.5617, allocations: 0 / 448.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.5618, allocations: 42.19 kB / 448.9 MB, free: 13.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 3.637e-06/0.5618, allocations: 3.984 kB / 448.9 MB, free: 13.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001606/0.562, allocations: 37.7 kB / 448.9 MB, free: 13.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.562, allocations: 51.41 kB / 449 MB, free: 13.39 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.5621, allocations: 100.7 kB / 449.1 MB, free: 13.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.5622, allocations: 25.7 kB / 449.1 MB, free: 13.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.738e-05/0.5622, allocations: 150.6 kB / 449.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.5623, allocations: 11.19 kB / 449.2 MB, free: 13.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.5623, allocations: 4 kB / 449.2 MB, free: 13.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.5625, allocations: 322.7 kB / 449.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.58e-05/0.5625, allocations: 4 kB / 449.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.544e-05/0.5626, allocations: 21.14 kB / 449.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.323e-05/0.5626, allocations: 4 kB / 449.6 MB, free: 12.74 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5626, allocations: 0 / 449.6 MB, free: 12.74 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001216/0.5627, allocations: 60.62 kB / 449.7 MB, free: 12.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.5628, allocations: 11.98 kB / 449.7 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.5628, allocations: 7.875 kB / 449.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.5628, allocations: 0 / 449.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.5629, allocations: 8 kB / 449.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.563, allocations: 0 / 449.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.847e-05/0.563, allocations: 4.875 kB / 449.7 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.563, allocations: 0 / 449.7 MB, free: 12.65 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.429e-05/0.5631, allocations: 108.9 kB / 449.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.569e-05/0.5632, allocations: 4 kB / 449.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.28e-05/0.5632, allocations: 11.45 kB / 449.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.5632, allocations: 0 / 449.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.5632, allocations: 0 / 449.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.5632, allocations: 0 / 449.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.5634, allocations: 161.4 kB / 450 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.5634, allocations: 4.125 kB / 450 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.5635, allocations: 4 kB / 450 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.5636, allocations: 0 / 450 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.5636, allocations: 0 / 450 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.166e-05/0.5636, allocations: 11.89 kB / 450 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5636, allocations: 0.7031 kB / 450 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001657/0.5638, allocations: 79.73 kB / 450.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.07e-05/0.5639, allocations: 77.11 kB / 450.1 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.5639, allocations: 4.031 kB / 450.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.601e-05/0.5639, allocations: 0 / 450.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.891e-05/0.564, allocations: 3.953 kB / 450.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.564, allocations: 3.562 kB / 450.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.151e-05/0.5641, allocations: 87.58 kB / 450.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5641, allocations: 4.062 kB / 450.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004575/0.5645, allocations: 71.5 kB / 450.3 MB, free: 11.95 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (q,qd) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008596/0.5654, allocations: 0.6819 MB / 451 MB, free: 11.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001168/0.5656, allocations: 15.69 kB / 451 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.5656, allocations: 0 / 451 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.858e-05/0.5656, allocations: 16.06 kB / 451 MB, free: 11.22 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.5658, allocations: 15.5 kB / 451 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005285/0.5663, allocations: 180.6 kB / 451.2 MB, free: 10.99 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.5667, allocations: 0.6848 MB / 451.9 MB, free: 10.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.227e-05/0.5667, allocations: 11 kB / 451.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of SimCode: time 8.12e-07/0.5667, allocations: 0 / 451.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.715/3.282, allocations: 1.43 MB / 453.3 MB, free: 8.848 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Math_Nonlinear_Examples_quadratureLobatto3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Math_Nonlinear_Examples_quadratureLobatto3.fmu > Modelica_3.2.3_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3_res.mat does not exist to compare? outputFormat=mat