Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Filter.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.Blocks.Examples.Filter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Filter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Filter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Filter",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.001648/0.001647, allocations: 181.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.02/2.02, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001095/0.001095, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.528e-05/3.534e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09542/0.09549, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.414/0.5095, allocations: 89.49 MB / 458.7 MB, free: 3.918 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.5098, allocations: 71.73 kB / 458.7 MB, free: 3.883 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1868/0.6966, allocations: 35.5 MB / 494.2 MB, free: 2.008 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.6967, allocations: 0 / 494.2 MB, free: 2.008 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.521e-05/0.6967, allocations: 19.94 kB / 494.3 MB, free: 1.988 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.002465/0.6992, allocations: 0.8216 MB / 495.1 MB, free: 1.117 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/0.6993, allocations: 12.03 kB / 495.1 MB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.888e-05/0.6994, allocations: 46.55 kB / 495.1 MB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.6995, allocations: 47.44 kB / 495.2 MB, free: 1.004 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.7007, allocations: 444.8 kB / 495.6 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.7008, allocations: 16.28 kB / 495.6 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.7009, allocations: 35.89 kB / 495.7 MB, free: 488 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006673/0.7016, allocations: 318.6 kB / 496 MB, free: 112 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.7016, allocations: 0 / 496 MB, free: 112 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.837e-05/0.7016, allocations: 8 kB / 496 MB, free: 104 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.7017, allocations: 4 kB / 496 MB, free: 100 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004206/0.7021, allocations: 148.6 kB / 496.1 MB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.704, allocations: 0.6875 MB / 496.8 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009899/0.705, allocations: 307.2 kB / 497.1 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002615/0.7053, allocations: 101.6 kB / 497.2 MB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.7053, allocations: 8.172 kB / 497.2 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.7054, allocations: 34.69 kB / 497.3 MB, free: 14.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.394e-06/0.7054, allocations: 0 / 497.3 MB, free: 14.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007751/0.7062, allocations: 283.6 kB / 497.5 MB, free: 14.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002025/0.7064, allocations: 371.8 kB / 497.9 MB, free: 14.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005989/0.707, allocations: 351 kB / 498.2 MB, free: 13.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.692e-05/0.7071, allocations: 33.7 kB / 498.3 MB, free: 13.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.7073, allocations: 235.3 kB / 498.5 MB, free: 13.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.7074, allocations: 82.83 kB / 498.6 MB, free: 13.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.581e-05/0.7075, allocations: 15.94 kB / 498.6 MB, free: 13.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.7076, allocations: 330.8 kB / 498.9 MB, free: 12.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005425/0.7082, allocations: 192.3 kB / 499.1 MB, free: 12.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006317/0.7088, allocations: 302.4 kB / 499.4 MB, free: 12.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005724/0.7094, allocations: 225.4 kB / 499.6 MB, free: 12.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.7094, allocations: 7.953 kB / 499.6 MB, free: 12.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001735/0.7112, allocations: 0.5838 MB / 0.4885 GB, free: 11.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.7112, allocations: 11.94 kB / 0.4885 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.255e-05/0.7113, allocations: 11.98 kB / 0.4885 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000717/0.712, allocations: 126.4 kB / 0.4886 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005552/0.7126, allocations: 67.97 kB / 0.4887 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004722/0.7173, allocations: 4.224 MB / 0.4928 GB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004609/0.7178, allocations: 51.61 kB / 0.4929 GB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-05/0.7179, allocations: 20 kB / 0.4929 GB, free: 6.699 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 27 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 7 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000177/0.7181, allocations: 124.9 kB / 0.493 GB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.155e-05/0.7182, allocations: 35.53 kB / 0.4931 GB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001508/0.7184, allocations: 51.47 kB / 0.4931 GB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.7184, allocations: 4 kB / 0.4931 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.7184, allocations: 0 / 0.4931 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.7184, allocations: 0 / 0.4931 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005781/0.719, allocations: 349.3 kB / 0.4934 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.719, allocations: 3.984 kB / 0.4934 GB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006068/0.7196, allocations: 39.98 kB / 0.4935 GB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.7197, allocations: 0 / 0.4935 GB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.878e-05/0.7197, allocations: 11.98 kB / 0.4935 GB, free: 6.031 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.7197, allocations: 11.89 kB / 0.4935 GB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7197, allocations: 0 / 0.4935 GB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.7208, allocations: 492.8 kB / 0.494 GB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.7209, allocations: 116.5 kB / 0.4941 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.922e-05/0.721, allocations: 12 kB / 0.4941 GB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003267/0.7213, allocations: 19.94 kB / 0.4941 GB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.469e-05/0.7214, allocations: 16.09 kB / 0.4941 GB, free: 5.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.7215, allocations: 11.92 kB / 0.4941 GB, free: 5.332 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004467/0.7219, allocations: 261.2 kB / 0.4944 GB, free: 5.078 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7219, allocations: 0 / 0.4944 GB, free: 5.078 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002896/0.7248, allocations: 0.6872 MB / 0.4951 GB, free: 4.391 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (CriticalDamping.x[1],CriticalDamping.x[2],CriticalDamping.x[3],Bessel.x[1],Bessel.x[2],Bessel.x[3],Butterworth.x[1],Butterworth.x[2],Butterworth.x[3],ChebyshevI.x[1],ChebyshevI.x[2],ChebyshevI.x[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.004097/0.729, allocations: 1.641 MB / 0.4967 GB, free: 2.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.7311, allocations: 0.9371 MB / 0.4976 GB, free: 1.711 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.7312, allocations: 0 / 0.4976 GB, free: 1.711 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003044/0.7315, allocations: 111.9 kB / 0.4977 GB, free: 1.602 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008338/0.7323, allocations: 98.3 kB / 0.4978 GB, free: 1.508 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003478/0.7358, allocations: 1.112 MB / 0.4989 GB, free: 360 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005896/0.7365, allocations: 0.8458 MB / 0.4997 GB, free: 15.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002993/0.7368, allocations: 131.4 kB / 0.4998 GB, free: 15.35 MB / 394.7 MB Notification: Performance of SimCode: time 1.483e-06/0.7368, allocations: 0 / 0.4998 GB, free: 15.35 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.427/4.164, allocations: 14.47 MB / 0.5139 GB, free: 0.8516 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Filter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Filter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Filter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Filter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Filter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Filter_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Filter.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Filter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Filter_res.mat does not exist to compare? outputFormat=mat