Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",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.001501/0.001501, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 98.83 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002562/0.0002562, allocations: 8 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2214/0.2217, allocations: 50.39 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09737/0.3191, allocations: 77.32 MB / 478.9 MB, free: 3.145 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.3194, allocations: 79.94 kB / 479 MB, free: 3.066 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00449/0.3239, allocations: 1.619 MB / 480.6 MB, free: 1.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3239, allocations: 0 / 480.6 MB, free: 1.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.324, allocations: 0 / 480.6 MB, free: 1.449 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004228/0.3244, allocations: 386.9 kB / 481 MB, free: 1.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.3244, allocations: 8.031 kB / 481 MB, free: 1.016 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.376e-05/0.3245, allocations: 46.45 kB / 481 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.242e-05/0.3245, allocations: 11.84 kB / 481 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.3247, allocations: 195.5 kB / 481.2 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-06/0.3248, allocations: 0 / 481.2 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.3248, allocations: 4 kB / 481.2 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002944/0.3251, allocations: 130.7 kB / 481.4 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.3251, allocations: 7.938 kB / 481.4 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.3251, allocations: 0 / 481.4 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3251, allocations: 7.953 kB / 481.4 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.667e-05/0.3252, allocations: 27.92 kB / 481.4 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004235/0.3257, allocations: 366.8 kB / 481.8 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.3258, allocations: 94.47 kB / 481.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.3258, allocations: 11.98 kB / 481.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.3259, allocations: 38.5 kB / 481.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.3259, allocations: 0 / 481.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003115/0.3262, allocations: 113.6 kB / 482 MB, free: 15.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.392e-05/0.3263, allocations: 136.5 kB / 482.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.3264, allocations: 131.2 kB / 482.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.3264, allocations: 25.7 kB / 482.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.3265, allocations: 92.33 kB / 482.4 MB, free: 15.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.3265, allocations: 8.062 kB / 482.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.3265, allocations: 4 kB / 482.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.3266, allocations: 322.8 kB / 482.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.856e-05/0.3267, allocations: 11.98 kB / 482.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.381e-05/0.3268, allocations: 48.28 kB / 482.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.742e-05/0.3268, allocations: 23.94 kB / 482.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3268, allocations: 0 / 482.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000153/0.327, allocations: 77.73 kB / 482.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.327, allocations: 8.031 kB / 482.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.327, allocations: 4 kB / 482.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3271, allocations: 3.953 kB / 482.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.188e-05/0.3272, allocations: 19.92 kB / 482.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.3272, allocations: 0 / 482.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.96e-05/0.3272, allocations: 7.906 kB / 482.9 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.3272, allocations: 4.125 kB / 482.9 MB, free: 14.81 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 0.0001183/0.3274, allocations: 121.8 kB / 483 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.3275, allocations: 65.48 kB / 483.1 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.669e-05/0.3275, allocations: 27.75 kB / 483.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3275, allocations: 0 / 483.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3275, allocations: 3.953 kB / 483.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3276, allocations: 4 kB / 483.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.3278, allocations: 173.6 kB / 483.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3278, allocations: 0 / 483.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.159e-05/0.3279, allocations: 12 kB / 483.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3279, allocations: 3.984 kB / 483.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3279, allocations: 12.06 kB / 483.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3279, allocations: 0 / 483.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3279, allocations: 3.938 kB / 483.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002434/0.3282, allocations: 301.5 kB / 483.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.929e-05/0.3282, allocations: 104.9 kB / 483.7 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.3283, allocations: 0 / 483.7 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.3284, allocations: 5.219 kB / 483.7 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.206e-05/0.3284, allocations: 3.984 kB / 483.7 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.3284, allocations: 4 kB / 483.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.62e-05/0.3285, allocations: 121.5 kB / 483.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3285, allocations: 0 / 483.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002549/0.3288, allocations: 4 kB / 483.9 MB, free: 13.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0005967/0.3294, allocations: 1.042 MB / 484.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001519/0.3295, allocations: 52.09 kB / 485 MB, free: 12.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3296, allocations: 0 / 485 MB, free: 12.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.748e-05/0.3296, allocations: 15.94 kB / 485 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.3299, allocations: 30.94 kB / 485 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.331, allocations: 1.174 MB / 486.2 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.3313, allocations: 0.7043 MB / 486.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.883e-05/0.3314, allocations: 3.984 kB / 486.9 MB, free: 10.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.777e-05/0.3314, allocations: 19.5 kB / 486.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.3314, allocations: 0 / 486.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01343/0.3449, allocations: 1.577 MB / 488.5 MB, free: 9.109 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/0.3451, allocations: 180.8 kB / 488.7 MB, free: 8.871 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.602/1.947, allocations: 4 kB / 488.7 MB, free: 8.867 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat does not exist to compare? outputFormat=mat