Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000879/0.000879, allocations: 96.17 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009987/0.0009986, allocations: 181.8 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 223.2 MB / 241.1 MB, free: 372 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004682, allocations: 5.469 kB / 300.8 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1386, allocations: 50.43 MB / 351.2 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.002489/0.1412, allocations: 1.518 MB / 352.8 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1425, allocations: 0.5888 MB / 353.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002055/0.1427, allocations: 4 kB / 353.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.36e-05/0.1428, allocations: 7.875 kB / 353.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002001/0.143, allocations: 31.88 kB / 353.4 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004317/0.1434, allocations: 95.72 kB / 353.5 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001759/0.1436, allocations: 83.84 kB / 353.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.1438, allocations: 45.64 kB / 353.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.644e-05/0.1439, allocations: 39.84 kB / 353.7 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.1e-05/0.144, allocations: 35.73 kB / 353.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.144, allocations: 0 / 353.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.813e-05/0.144, allocations: 4 kB / 353.7 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.064e-05/0.144, allocations: 19.92 kB / 353.7 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.831e-05/0.1441, allocations: 45.58 kB / 353.8 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.1442, allocations: 99.7 kB / 353.9 MB, free: 1.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.1442, allocations: 4 kB / 353.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1442, allocations: 0 / 353.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1443, allocations: 0 / 353.9 MB, free: 1.266 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006096/0.1449, allocations: 435.2 kB / 354.3 MB, free: 0.793 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1449, allocations: 8.031 kB / 354.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.255e-05/0.145, allocations: 42.52 kB / 354.3 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.747e-05/0.145, allocations: 23.75 kB / 354.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.1454, allocations: 232.6 kB / 354.6 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.1454, allocations: 8.188 kB / 354.6 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.1454, allocations: 12 kB / 354.6 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005861/0.146, allocations: 288 kB / 354.9 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.146, allocations: 7.922 kB / 354.9 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.1461, allocations: 12 kB / 354.9 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1461, allocations: 0 / 354.9 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002174/0.1463, allocations: 83.83 kB / 355 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005249/0.1468, allocations: 431.4 kB / 355.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004659/0.1473, allocations: 314.1 kB / 355.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.1473, allocations: 4.125 kB / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.1474, allocations: 46.48 kB / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.212e-06/0.1474, allocations: 0 / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005443/0.1479, allocations: 229.6 kB / 356 MB, free: 14.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.148, allocations: 203.8 kB / 356.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.1482, allocations: 179.1 kB / 356.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.1482, allocations: 33.7 kB / 356.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.769e-05/0.1483, allocations: 96.73 kB / 356.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.1483, allocations: 15.89 kB / 356.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.672e-06/0.1484, allocations: 7.938 kB / 356.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1485, allocations: 326.8 kB / 356.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.657e-05/0.1485, allocations: 31.98 kB / 356.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.1487, allocations: 135.4 kB / 357 MB, free: 13.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.96e-05/0.1488, allocations: 47.95 kB / 357 MB, free: 13.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.1488, allocations: 4 kB / 357 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002686/0.1491, allocations: 177.1 kB / 357.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1491, allocations: 8 kB / 357.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1491, allocations: 4 kB / 357.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.1491, allocations: 4.531 kB / 357.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.1493, allocations: 43.92 kB / 357.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.1493, allocations: 7.984 kB / 357.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.859e-05/0.1494, allocations: 19.84 kB / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.1494, allocations: 11.95 kB / 357.3 MB, free: 13.4 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001118/0.1495, allocations: 137.7 kB / 357.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002791/0.1498, allocations: 153.4 kB / 357.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.876e-05/0.1499, allocations: 21.41 kB / 357.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.1499, allocations: 7.984 kB / 357.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1499, allocations: 3.938 kB / 357.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.1499, allocations: 4 kB / 357.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.1502, allocations: 209.5 kB / 357.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1502, allocations: 11.94 kB / 357.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.1504, allocations: 48 kB / 357.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1504, allocations: 0 / 357.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.1504, allocations: 7.938 kB / 357.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1504, allocations: 0 / 357.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1504, allocations: 4 kB / 357.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000475/0.1509, allocations: 419.8 kB / 358.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.795e-05/0.151, allocations: 120.8 kB / 358.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/0.151, allocations: 0 / 358.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.1512, allocations: 19.98 kB / 358.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.218e-05/0.1512, allocations: 0 / 358.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.1512, allocations: 8 kB / 358.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.1513, allocations: 133.2 kB / 358.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1513, allocations: 4 kB / 358.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.1517, allocations: 20 kB / 358.6 MB, free: 11.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.001023/0.1527, allocations: 1.296 MB / 359.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002785/0.153, allocations: 131.2 kB / 360 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.153, allocations: 0 / 360 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.485e-05/0.1531, allocations: 19.92 kB / 360.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.1536, allocations: 113.2 kB / 360.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.1561, allocations: 3.34 MB / 363.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.1565, allocations: 0.7319 MB / 364.2 MB, free: 6.133 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.795e-05/0.1566, allocations: 17.55 kB / 364.3 MB, free: 6.117 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.172e-05/0.1567, allocations: 43.36 kB / 364.3 MB, free: 6.074 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1567, allocations: 0 / 364.3 MB, free: 6.074 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01482/0.1715, allocations: 3.073 MB / 367.4 MB, free: 3.195 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.1718, allocations: 203 kB / 367.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/1.961, allocations: 3.938 kB / 367.6 MB, free: 2.953 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat does not exist to compare? outputFormat=mat