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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008054/0.0008054, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001221/0.001221, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.42/1.42, allocations: 223.3 MB / 241.2 MB, free: 5.164 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002375/0.0002377, allocations: 5.812 kB / 300.9 MB, free: 5.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1214, allocations: 50.42 MB / 351.3 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.001999/0.1235, allocations: 1.302 MB / 352.6 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008584/0.1243, allocations: 499 kB / 353.1 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.986e-05/0.1244, allocations: 0 / 353.1 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.157e-05/0.1245, allocations: 7.938 kB / 353.1 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.1246, allocations: 7.938 kB / 353.1 MB, free: 9.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.1249, allocations: 43.89 kB / 353.2 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.641e-05/0.125, allocations: 47.84 kB / 353.2 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.766e-05/0.1251, allocations: 8 kB / 353.2 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.682e-05/0.1252, allocations: 27.84 kB / 353.3 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.645e-05/0.1252, allocations: 27.86 kB / 353.3 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.1253, allocations: 4 kB / 353.3 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.131e-05/0.1253, allocations: 0 / 353.3 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.558e-05/0.1253, allocations: 7.938 kB / 353.3 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.504e-05/0.1253, allocations: 33.7 kB / 353.3 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.96e-05/0.1254, allocations: 47.84 kB / 353.4 MB, free: 9.152 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1254, allocations: 0 / 353.4 MB, free: 9.152 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1255, allocations: 0 / 353.4 MB, free: 9.152 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.1255, allocations: 3.938 kB / 353.4 MB, free: 9.148 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004213/0.1259, allocations: 371.1 kB / 353.8 MB, free: 8.738 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.1259, allocations: 16.02 kB / 353.8 MB, free: 8.723 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.239e-05/0.126, allocations: 30.56 kB / 353.8 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.126, allocations: 11.86 kB / 353.8 MB, free: 8.672 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.1263, allocations: 196.2 kB / 354 MB, free: 8.441 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.1263, allocations: 4 kB / 354 MB, free: 8.438 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.1263, allocations: 8 kB / 354 MB, free: 8.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.1266, allocations: 138.5 kB / 354.1 MB, free: 8.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1266, allocations: 7.984 kB / 354.2 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.1266, allocations: 0 / 354.2 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1266, allocations: 7.891 kB / 354.2 MB, free: 8.254 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.84e-05/0.1267, allocations: 35.91 kB / 354.2 MB, free: 8.219 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003421/0.1271, allocations: 279.6 kB / 354.5 MB, free: 7.887 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.1272, allocations: 102.4 kB / 354.6 MB, free: 7.75 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.648e-05/0.1273, allocations: 47.48 kB / 354.6 MB, free: 7.691 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.1273, allocations: 3.984 kB / 354.6 MB, free: 7.688 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.1274, allocations: 34.56 kB / 354.7 MB, free: 7.645 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.1274, allocations: 0 / 354.7 MB, free: 7.645 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002901/0.1277, allocations: 113.9 kB / 354.8 MB, free: 7.527 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.069e-05/0.1278, allocations: 136.5 kB / 354.9 MB, free: 7.363 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.1279, allocations: 145.9 kB / 355 MB, free: 7.215 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.1279, allocations: 29.7 kB / 355.1 MB, free: 7.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.014e-05/0.128, allocations: 96.25 kB / 355.2 MB, free: 7.082 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.767e-05/0.128, allocations: 7.906 kB / 355.2 MB, free: 7.074 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-06/0.128, allocations: 0 / 355.2 MB, free: 7.074 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1281, allocations: 318.8 kB / 355.5 MB, free: 6.754 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.901e-05/0.1282, allocations: 16 kB / 355.5 MB, free: 6.738 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.762e-05/0.1283, allocations: 44.28 kB / 355.5 MB, free: 6.68 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.445e-05/0.1283, allocations: 23.98 kB / 355.6 MB, free: 6.656 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1283, allocations: 0 / 355.6 MB, free: 6.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001597/0.1285, allocations: 81.47 kB / 355.6 MB, free: 6.57 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1285, allocations: 11.98 kB / 355.7 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1285, allocations: 0 / 355.7 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.1286, allocations: 3.953 kB / 355.7 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.158e-05/0.1286, allocations: 16.16 kB / 355.7 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.1287, allocations: 4 kB / 355.7 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.91e-05/0.1287, allocations: 11.98 kB / 355.7 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.1287, allocations: 0 / 355.7 MB, free: 6.523 MB / 286.1 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 9.016e-05/0.1288, allocations: 121.8 kB / 355.8 MB, free: 6.395 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.949e-05/0.1289, allocations: 53.59 kB / 355.9 MB, free: 6.336 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.626e-05/0.1289, allocations: 19.83 kB / 355.9 MB, free: 6.312 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.129, allocations: 8.016 kB / 355.9 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.129, allocations: 4 kB / 355.9 MB, free: 6.301 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.129, allocations: 11.86 kB / 355.9 MB, free: 6.289 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.1292, allocations: 169.7 kB / 356.1 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1292, allocations: 3.938 kB / 356.1 MB, free: 6.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.485e-05/0.1292, allocations: 15.98 kB / 356.1 MB, free: 6.055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1293, allocations: 4 kB / 356.1 MB, free: 6.051 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.1293, allocations: 0 / 356.1 MB, free: 6.051 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1293, allocations: 0 / 356.1 MB, free: 6.051 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.1293, allocations: 7.953 kB / 356.1 MB, free: 6.043 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001966/0.1295, allocations: 198 kB / 356.3 MB, free: 5.824 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.888e-05/0.1296, allocations: 104.9 kB / 356.4 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.1296, allocations: 192 / 356.4 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.904e-05/0.1297, allocations: 12 kB / 356.4 MB, free: 5.691 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.1297, allocations: 7.953 kB / 356.4 MB, free: 5.684 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.1297, allocations: 0 / 356.4 MB, free: 5.684 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.282e-05/0.1298, allocations: 115.8 kB / 356.5 MB, free: 5.57 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1299, allocations: 0 / 356.5 MB, free: 5.57 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.1301, allocations: 8 kB / 356.5 MB, free: 5.562 MB / 286.1 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.0005176/0.1306, allocations: 0.7304 MB / 357.3 MB, free: 4.797 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001529/0.1308, allocations: 47.92 kB / 357.3 MB, free: 4.75 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1308, allocations: 0 / 357.3 MB, free: 4.75 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.963e-05/0.1308, allocations: 19.98 kB / 357.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.1312, allocations: 27.95 kB / 357.4 MB, free: 4.703 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009184/0.1322, allocations: 0.5782 MB / 357.9 MB, free: 4.051 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.1325, allocations: 0.6926 MB / 358.6 MB, free: 3.332 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.966e-05/0.1325, allocations: 11.98 kB / 358.6 MB, free: 3.32 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.189e-05/0.1326, allocations: 23.44 kB / 358.7 MB, free: 3.297 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1326, allocations: 0 / 358.7 MB, free: 3.297 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01181/0.1444, allocations: 1.58 MB / 360.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.1446, allocations: 196.7 kB / 360.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.016, allocations: 0 / 360.4 MB, free: 1.605 MB / 286.1 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