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.0009134/0.0009134, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009881/0.000988, allocations: 101.8 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.048e-05/2.056e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1317, allocations: 50.43 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3531/0.4849, allocations: 76.58 MB / 464.1 MB, free: 2.133 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/0.4852, allocations: 79.95 kB / 464.2 MB, free: 2.055 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004383/0.4896, allocations: 1.603 MB / 465.8 MB, free: 464 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4896, allocations: 0 / 465.8 MB, free: 464 kB / 330.7 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.4896, allocations: 0 / 465.8 MB, free: 464 kB / 330.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.0003688/0.49, allocations: 371.1 kB / 466.2 MB, free: 48 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.49, allocations: 8.031 kB / 466.2 MB, free: 40 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.4901, allocations: 15.8 kB / 466.2 MB, free: 24 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.4904, allocations: 195.5 kB / 466.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.4904, allocations: 0 / 466.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.4904, allocations: 4 kB / 466.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001/0.4905, allocations: 18.88 kB / 466.4 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.4908, allocations: 122.7 kB / 466.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.4908, allocations: 4 kB / 466.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.4908, allocations: 3.953 kB / 466.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.4908, allocations: 4 kB / 466.6 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004333/0.4912, allocations: 339.3 kB / 466.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.708e-05/0.4914, allocations: 90.42 kB / 467 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.191e-05/0.4914, allocations: 35.44 kB / 467 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.4915, allocations: 12 kB / 467 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.4915, allocations: 30.56 kB / 467 MB, free: 15.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.4915, allocations: 0 / 467 MB, free: 15.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002157/0.4917, allocations: 77.47 kB / 467.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.4918, allocations: 140.6 kB / 467.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.4919, allocations: 128.7 kB / 467.4 MB, free: 14.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.4919, allocations: 25.7 kB / 467.4 MB, free: 14.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.843e-05/0.492, allocations: 92.27 kB / 467.5 MB, free: 14.51 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.492, allocations: 7.891 kB / 467.5 MB, free: 14.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.492, allocations: 0 / 467.5 MB, free: 14.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.4921, allocations: 318.8 kB / 467.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.954e-05/0.4921, allocations: 8 kB / 467.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.205e-05/0.4922, allocations: 40.28 kB / 467.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.729e-05/0.4922, allocations: 11.94 kB / 467.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.4922, allocations: 0 / 467.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001006/0.4923, allocations: 77.5 kB / 468 MB, free: 14.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.4923, allocations: 5.25 kB / 468 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.4924, allocations: 0 / 468 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.4924, allocations: 4 kB / 468 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.468e-05/0.4925, allocations: 15.98 kB / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4925, allocations: 3.953 kB / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.883e-05/0.4925, allocations: 7.938 kB / 468 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.4926, allocations: 4 kB / 468 MB, free: 13.98 MB / 346.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 () * 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 6.168e-05/0.4926, allocations: 106.8 kB / 468.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001259/0.4928, allocations: 73.47 kB / 468.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.4928, allocations: 11.89 kB / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.456e-05/0.4929, allocations: 15.92 kB / 468.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.4929, allocations: 7.953 kB / 468.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4929, allocations: 0 / 468.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.4929, allocations: 0 / 468.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.4931, allocations: 154.2 kB / 468.4 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.4931, allocations: 7.312 kB / 468.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.684e-05/0.4932, allocations: 12 kB / 468.4 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.4932, allocations: 7.984 kB / 468.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.4933, allocations: 0 / 468.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4933, allocations: 0 / 468.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.4933, allocations: 7.938 kB / 468.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/0.4935, allocations: 286.8 kB / 468.7 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.135e-05/0.4935, allocations: 92.95 kB / 468.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.4936, allocations: 4 kB / 468.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.4937, allocations: 7.984 kB / 468.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.22e-05/0.4937, allocations: 4 kB / 468.8 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.4937, allocations: 8 kB / 468.8 MB, free: 13.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.856e-05/0.4938, allocations: 107.8 kB / 468.9 MB, free: 12.99 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4938, allocations: 0 / 468.9 MB, free: 12.99 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002583/0.4941, allocations: 8 kB / 468.9 MB, free: 12.98 MB / 346.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 () * 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.0005286/0.4946, allocations: 1.026 MB / 469.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.542e-05/0.4947, allocations: 27.94 kB / 470 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4947, allocations: 0 / 470 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.932e-05/0.4947, allocations: 4.312 kB / 470 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.4951, allocations: 36.02 kB / 470 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/0.4955, allocations: 168.5 kB / 470.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.4958, allocations: 0.6963 MB / 470.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.798e-05/0.4958, allocations: 4.188 kB / 470.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.4959, allocations: 27.42 kB / 470.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4959, allocations: 0 / 470.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.516, allocations: 1.252 MB / 472.1 MB, free: 9.645 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002784/0.5164, allocations: 146.1 kB / 472.3 MB, free: 9.449 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.388/1.904, allocations: 0 / 472.3 MB, free: 9.449 MB / 346.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