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.001484/0.00149, allocations: 178.3 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.049/2.049, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001124, allocations: 90.09 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.566e-05/2.574e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4903/0.4904, allocations: 47.57 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.6144, allocations: 74.54 MB / 437 MB, free: 11.78 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.6148, allocations: 65.56 kB / 437 MB, free: 11.71 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01754/0.6323, allocations: 3.536 MB / 440.6 MB, free: 8.199 MB / 331.1 MB Notification: Performance of FrontEnd: time 4.528e-06/0.6324, allocations: 8 kB / 440.6 MB, free: 8.191 MB / 331.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.6324, allocations: 0 / 440.6 MB, free: 8.191 MB / 331.1 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.0005301/0.6329, allocations: 372.5 kB / 440.9 MB, free: 7.785 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.633, allocations: 12.03 kB / 440.9 MB, free: 7.773 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.633, allocations: 0.7812 kB / 440.9 MB, free: 7.773 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001899/0.6332, allocations: 175.8 kB / 441.1 MB, free: 7.562 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.6333, allocations: 0 / 441.1 MB, free: 7.562 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.6333, allocations: 3.953 kB / 441.1 MB, free: 7.559 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.737e-05/0.6334, allocations: 12 kB / 441.1 MB, free: 7.547 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.269e-05/0.6335, allocations: 33.69 kB / 441.2 MB, free: 7.508 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.6335, allocations: 4 kB / 441.2 MB, free: 7.504 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.6335, allocations: 0 / 441.2 MB, free: 7.504 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.6335, allocations: 0 / 441.2 MB, free: 7.504 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001912/0.6337, allocations: 138.2 kB / 441.3 MB, free: 7.332 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.938e-05/0.6338, allocations: 34.5 kB / 441.3 MB, free: 7.289 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.002e-05/0.6338, allocations: 11.83 kB / 441.4 MB, free: 7.277 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.6339, allocations: 0 / 441.4 MB, free: 7.277 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.6339, allocations: 44.02 kB / 441.4 MB, free: 7.227 MB / 331.1 MB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.6339, allocations: 0 / 441.4 MB, free: 7.227 MB / 331.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001474/0.6341, allocations: 41.78 kB / 441.4 MB, free: 7.18 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.6341, allocations: 51.41 kB / 441.5 MB, free: 7.117 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.023e-05/0.6342, allocations: 89 kB / 441.6 MB, free: 7.023 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.6343, allocations: 25.7 kB / 441.6 MB, free: 6.992 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.158e-05/0.6344, allocations: 158.6 kB / 441.8 MB, free: 6.836 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.6344, allocations: 13.86 kB / 441.8 MB, free: 6.824 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/0.6344, allocations: 4 kB / 441.8 MB, free: 6.82 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.6346, allocations: 310.8 kB / 442.1 MB, free: 6.508 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.365e-05/0.6346, allocations: 8 kB / 442.1 MB, free: 6.5 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.811e-05/0.6346, allocations: 17.66 kB / 442.1 MB, free: 6.477 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.282e-05/0.6347, allocations: 11.98 kB / 442.1 MB, free: 6.465 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.6347, allocations: 4 kB / 442.1 MB, free: 6.461 MB / 331.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000109/0.6348, allocations: 41.7 kB / 442.2 MB, free: 6.414 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.6349, allocations: 12.03 kB / 442.2 MB, free: 6.402 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.6349, allocations: 3.984 kB / 442.2 MB, free: 6.398 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.6349, allocations: 7.891 kB / 442.2 MB, free: 6.391 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.635, allocations: 8 kB / 442.2 MB, free: 6.383 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.635, allocations: 3.938 kB / 442.2 MB, free: 6.379 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.099e-05/0.6351, allocations: 0 / 442.2 MB, free: 6.379 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.6351, allocations: 4 kB / 442.2 MB, free: 6.375 MB / 331.1 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 7.982e-05/0.6352, allocations: 101 kB / 442.3 MB, free: 6.27 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.359e-05/0.6353, allocations: 46.23 kB / 442.3 MB, free: 6.219 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.459e-05/0.6353, allocations: 11.86 kB / 442.4 MB, free: 6.207 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.584e-05/0.6354, allocations: 4.125 kB / 442.4 MB, free: 6.199 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.6354, allocations: 2.188 kB / 442.4 MB, free: 6.199 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.6354, allocations: 0 / 442.4 MB, free: 6.199 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.6354, allocations: 4 kB / 442.4 MB, free: 6.195 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/0.6355, allocations: 136.7 kB / 442.5 MB, free: 6.027 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.6356, allocations: 0 / 442.5 MB, free: 6.027 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.6357, allocations: 7.984 kB / 442.5 MB, free: 6.02 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.6357, allocations: 0 / 442.5 MB, free: 6.02 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.6357, allocations: 0 / 442.5 MB, free: 6.02 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.6357, allocations: 15.89 kB / 442.5 MB, free: 6.004 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6357, allocations: 0 / 442.5 MB, free: 6.004 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.6359, allocations: 69.45 kB / 442.6 MB, free: 5.918 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.176e-05/0.636, allocations: 81.02 kB / 442.7 MB, free: 5.82 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.636, allocations: 48 / 442.7 MB, free: 5.82 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.817e-05/0.636, allocations: 3.984 kB / 442.7 MB, free: 5.816 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.137e-05/0.6361, allocations: 11.97 kB / 442.7 MB, free: 5.805 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.6361, allocations: 0.875 kB / 442.7 MB, free: 5.805 MB / 331.1 MB Notification: Performance of sorting global known variables: time 5.885e-05/0.6362, allocations: 87.34 kB / 442.8 MB, free: 5.719 MB / 331.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6362, allocations: 0 / 442.8 MB, free: 5.719 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004931/0.6367, allocations: 71.86 kB / 442.8 MB, free: 5.648 MB / 331.1 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.0007553/0.6374, allocations: 0.6709 MB / 443.5 MB, free: 4.945 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.6376, allocations: 19.98 kB / 443.5 MB, free: 4.926 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6376, allocations: 4.125 kB / 443.5 MB, free: 4.922 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 2.286e-05/0.6376, allocations: 7.938 kB / 443.5 MB, free: 4.914 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001394/0.6378, allocations: 7.891 kB / 443.5 MB, free: 4.906 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004877/0.6383, allocations: 183.8 kB / 443.7 MB, free: 4.684 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.6386, allocations: 0.6836 MB / 444.4 MB, free: 3.977 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.254e-05/0.6387, allocations: 11.44 kB / 444.4 MB, free: 3.965 MB / 331.1 MB Notification: Performance of SimCode: time 6.61e-07/0.6387, allocations: 0 / 444.4 MB, free: 3.965 MB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.772/3.411, allocations: 1.458 MB / 445.9 MB, free: 2.52 MB / 331.1 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