Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",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.001154/0.001154, allocations: 180.7 kB / 14.15 MB, free: 1.176 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.475/1.475, allocations: 221.3 MB / 236 MB, free: 2.988 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.0008715/0.0008715, allocations: 87.19 kB / 287 MB, free: 268 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2339/0.2339, allocations: 44.15 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.035e-05/3.04e-05, allocations: 4.219 kB / 451.9 MB, free: 9.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1478, allocations: 61.91 MB / 0.5018 GB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4347/0.5825, allocations: 86.72 MB / 0.5865 GB, free: 2.578 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000177/0.5828, allocations: 59.97 kB / 0.5865 GB, free: 2.52 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004372/0.5872, allocations: 1.533 MB / 0.588 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5872, allocations: 0 / 0.588 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.5872, allocations: 0 / 0.588 GB, free: 0.9922 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005129/0.5877, allocations: 386.2 kB / 0.5884 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.5878, allocations: 16.02 kB / 0.5884 GB, free: 0.5547 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.517e-05/0.5878, allocations: 34.5 kB / 0.5885 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.454e-05/0.5879, allocations: 11.91 kB / 0.5885 GB, free: 0.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.588, allocations: 183.1 kB / 0.5886 GB, free: 288 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.5881, allocations: 7.953 kB / 0.5886 GB, free: 280 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/0.5881, allocations: 8 kB / 0.5887 GB, free: 272 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001613/0.5883, allocations: 77.66 kB / 0.5887 GB, free: 188 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.5883, allocations: 0 / 0.5887 GB, free: 188 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.5883, allocations: 4 kB / 0.5887 GB, free: 184 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.5883, allocations: 4 kB / 0.5887 GB, free: 180 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.387e-05/0.5884, allocations: 34.95 kB / 0.5888 GB, free: 148 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.589, allocations: 328.7 kB / 0.5891 GB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001555/0.5892, allocations: 86.56 kB / 0.5892 GB, free: 15.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.131e-05/0.5893, allocations: 32.86 kB / 0.5892 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.5893, allocations: 4 kB / 0.5892 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.5894, allocations: 89.5 kB / 0.5893 GB, free: 15.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.5895, allocations: 0 / 0.5893 GB, free: 15.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003049/0.5898, allocations: 145.6 kB / 0.5894 GB, free: 15.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.5898, allocations: 63.41 kB / 0.5895 GB, free: 15.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.249e-05/0.5899, allocations: 105.2 kB / 0.5896 GB, free: 15.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.59, allocations: 29.7 kB / 0.5896 GB, free: 15.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.59, allocations: 92.42 kB / 0.5897 GB, free: 15.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.5901, allocations: 35.45 kB / 0.5897 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-06/0.5901, allocations: 8 kB / 0.5897 GB, free: 15.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.5902, allocations: 322.8 kB / 0.59 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.658e-05/0.5903, allocations: 28.38 kB / 0.5901 GB, free: 14.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.716e-05/0.5904, allocations: 73.91 kB / 0.5901 GB, free: 14.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.862e-05/0.5905, allocations: 44.11 kB / 0.5902 GB, free: 14.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5905, allocations: 0 / 0.5902 GB, free: 14.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002303/0.5907, allocations: 156 kB / 0.5903 GB, free: 14.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.5907, allocations: 4 kB / 0.5903 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.5907, allocations: 3.938 kB / 0.5903 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.5908, allocations: 4 kB / 0.5903 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.5909, allocations: 23.92 kB / 0.5904 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.557e-06/0.5909, allocations: 4 kB / 0.5904 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.141e-05/0.591, allocations: 12 kB / 0.5904 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.591, allocations: 4 kB / 0.5904 GB, free: 14.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001074/0.5911, allocations: 135.3 kB / 0.5905 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.751e-05/0.5911, allocations: 7.906 kB / 0.5905 GB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.623e-05/0.5912, allocations: 8.969 kB / 0.5905 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.5912, allocations: 4 kB / 0.5905 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5912, allocations: 7.875 kB / 0.5905 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.5912, allocations: 0 / 0.5905 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004948/0.5917, allocations: 437.2 kB / 0.591 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.5917, allocations: 4 kB / 0.591 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.534e-05/0.5918, allocations: 11.94 kB / 0.591 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.5918, allocations: 4 kB / 0.591 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.5918, allocations: 7.984 kB / 0.591 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.5918, allocations: 0 / 0.591 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.5918, allocations: 0 / 0.591 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002722/0.5921, allocations: 235.4 kB / 0.5912 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.5922, allocations: 85.02 kB / 0.5913 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.5922, allocations: 4 kB / 0.5913 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.5923, allocations: 15.98 kB / 0.5913 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.433e-05/0.5924, allocations: 7.984 kB / 0.5913 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.5924, allocations: 4 kB / 0.5913 GB, free: 13.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.78e-05/0.5925, allocations: 91.27 kB / 0.5914 GB, free: 13.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5925, allocations: 4 kB / 0.5914 GB, free: 13.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002243/0.5927, allocations: 20 kB / 0.5914 GB, free: 13.17 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0005647/0.5933, allocations: 0.7786 MB / 0.5922 GB, free: 12.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001854/0.5935, allocations: 99.89 kB / 0.5923 GB, free: 12.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5935, allocations: 4 kB / 0.5923 GB, free: 12.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.903e-05/0.5936, allocations: 44 kB / 0.5923 GB, free: 12.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/0.5938, allocations: 12.23 kB / 0.5923 GB, free: 12.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00051/0.5943, allocations: 167.8 kB / 0.5925 GB, free: 12.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.5946, allocations: 0.7004 MB / 0.5932 GB, free: 11.28 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.979e-05/0.5947, allocations: 8.891 kB / 0.5932 GB, free: 11.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.824e-05/0.5947, allocations: 31.42 kB / 0.5932 GB, free: 11.24 MB / 410.7 MB Notification: Performance of SimCode: time 3.1e-07/0.5947, allocations: 0 / 0.5932 GB, free: 11.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01309/0.6078, allocations: 1.876 MB / 0.5951 GB, free: 9.461 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/0.6081, allocations: 143.6 kB / 0.5952 GB, free: 9.234 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.621/2.229, allocations: 0 / 0.5952 GB, free: 9.234 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat