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.001023/0.001024, allocations: 86.53 kB / 16.31 MB, free: 5.66 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.001015/0.001015, allocations: 182.8 kB / 17.21 MB, free: 5.578 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.425/1.425, allocations: 223.2 MB / 241.2 MB, free: 5.422 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004252/0.0004255, allocations: 5.812 kB / 300.9 MB, free: 6.414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1225, allocations: 50.42 MB / 351.3 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.002143/0.1247, allocations: 1.521 MB / 352.9 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.1257, allocations: 0.5965 MB / 353.5 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.1259, allocations: 4 kB / 353.5 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.126, allocations: 15.86 kB / 353.5 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001066/0.1261, allocations: 11.88 kB / 353.5 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.1265, allocations: 91.7 kB / 353.6 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001742/0.1267, allocations: 119.6 kB / 353.7 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.1268, allocations: 49.64 kB / 353.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.281e-05/0.1269, allocations: 43.78 kB / 353.8 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.125e-05/0.127, allocations: 35.73 kB / 353.8 MB, free: 9.227 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.287e-05/0.1271, allocations: 4 kB / 353.8 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.63e-05/0.1271, allocations: 0 / 353.8 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.873e-05/0.1271, allocations: 23.91 kB / 353.9 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.384e-05/0.1272, allocations: 49.58 kB / 353.9 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.1273, allocations: 99.78 kB / 354 MB, free: 9.047 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1273, allocations: 0 / 354 MB, free: 9.047 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1273, allocations: 4 kB / 354 MB, free: 9.043 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1274, allocations: 0 / 354 MB, free: 9.043 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.0006033/0.128, allocations: 418.9 kB / 354.4 MB, free: 8.586 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.128, allocations: 12.03 kB / 354.4 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.604e-05/0.1281, allocations: 46.5 kB / 354.5 MB, free: 8.52 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.105e-05/0.1281, allocations: 27.81 kB / 354.5 MB, free: 8.492 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.1285, allocations: 231.6 kB / 354.7 MB, free: 8.223 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.1285, allocations: 8.188 kB / 354.7 MB, free: 8.215 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.1285, allocations: 12 kB / 354.7 MB, free: 8.203 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005569/0.1291, allocations: 288.2 kB / 355 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1291, allocations: 4 kB / 355 MB, free: 7.887 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.1291, allocations: 7.938 kB / 355 MB, free: 7.879 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1291, allocations: 4 kB / 355 MB, free: 7.875 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.1293, allocations: 87.88 kB / 355.1 MB, free: 7.789 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004509/0.1298, allocations: 419.5 kB / 355.5 MB, free: 7.316 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004419/0.1302, allocations: 314.1 kB / 355.8 MB, free: 6.945 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.1304, allocations: 120.2 kB / 356 MB, free: 6.812 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.1305, allocations: 11.94 kB / 356 MB, free: 6.801 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.1305, allocations: 34.56 kB / 356 MB, free: 6.758 MB / 286.1 MB Notification: Performance of pre-optimization done (n=18): time 1.763e-06/0.1305, allocations: 3.938 kB / 356 MB, free: 6.754 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005634/0.1311, allocations: 233.3 kB / 356.2 MB, free: 6.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.1312, allocations: 200.2 kB / 356.4 MB, free: 6.281 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.1314, allocations: 183.1 kB / 356.6 MB, free: 6.094 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.1314, allocations: 25.7 kB / 356.6 MB, free: 6.062 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.508e-05/0.1315, allocations: 108.4 kB / 356.7 MB, free: 5.949 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.1316, allocations: 15.89 kB / 356.8 MB, free: 5.934 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-06/0.1316, allocations: 4 kB / 356.8 MB, free: 5.93 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1317, allocations: 326.8 kB / 357.1 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.545e-05/0.1318, allocations: 23.98 kB / 357.1 MB, free: 5.578 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.1319, allocations: 150 kB / 357.2 MB, free: 5.379 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.1321, allocations: 52.02 kB / 357.3 MB, free: 5.328 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1321, allocations: 3.938 kB / 357.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002849/0.1324, allocations: 181.1 kB / 357.5 MB, free: 5.141 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.1324, allocations: 8 kB / 357.5 MB, free: 5.133 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.1324, allocations: 4 kB / 357.5 MB, free: 5.129 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.1324, allocations: 4 kB / 357.5 MB, free: 5.125 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.1326, allocations: 35.92 kB / 357.5 MB, free: 5.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.1326, allocations: 8.5 kB / 357.5 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.1327, allocations: 31.81 kB / 357.6 MB, free: 5.051 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.1327, allocations: 8 kB / 357.6 MB, free: 5.043 MB / 286.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.0001215/0.1329, allocations: 130 kB / 357.7 MB, free: 4.906 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002758/0.1331, allocations: 149.4 kB / 357.8 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.279e-05/0.1332, allocations: 29.44 kB / 357.9 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.1332, allocations: 4 kB / 357.9 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1332, allocations: 3.938 kB / 357.9 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.1332, allocations: 3.984 kB / 357.9 MB, free: 4.711 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.1335, allocations: 221.4 kB / 358.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1335, allocations: 0 / 358.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00014/0.1337, allocations: 39.97 kB / 358.1 MB, free: 4.406 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.1337, allocations: 7.938 kB / 358.2 MB, free: 4.398 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.1337, allocations: 4 kB / 358.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.1337, allocations: 8 kB / 358.2 MB, free: 4.387 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.1337, allocations: 0 / 358.2 MB, free: 4.387 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004175/0.1342, allocations: 377 kB / 358.5 MB, free: 3.992 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.775e-05/0.1343, allocations: 108.9 kB / 358.6 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.1343, allocations: 7.938 kB / 358.6 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.1344, allocations: 15.98 kB / 358.7 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.254e-05/0.1345, allocations: 12 kB / 358.7 MB, free: 3.832 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-06/0.1345, allocations: 4 kB / 358.7 MB, free: 3.828 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.00011/0.1346, allocations: 133.2 kB / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1346, allocations: 0 / 358.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000329/0.1349, allocations: 27.94 kB / 358.8 MB, free: 3.672 MB / 286.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.000856/0.1358, allocations: 0.9777 MB / 359.8 MB, free: 2.66 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003088/0.1361, allocations: 124.8 kB / 359.9 MB, free: 2.539 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1361, allocations: 0 / 359.9 MB, free: 2.539 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.473e-05/0.1362, allocations: 16 kB / 359.9 MB, free: 2.523 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006703/0.1369, allocations: 112.1 kB / 360.1 MB, free: 2.414 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.1384, allocations: 0.9576 MB / 361 MB, free: 1.348 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.1387, allocations: 0.7319 MB / 361.7 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.101e-05/0.1387, allocations: 13.55 kB / 361.8 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.265e-05/0.1388, allocations: 43.42 kB / 361.8 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1388, allocations: 0 / 361.8 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01413/0.1529, allocations: 3.076 MB / 364.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003519/0.1534, allocations: 212.2 kB / 365.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.122, allocations: 1.969 kB / 365.1 MB, free: 13.41 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