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.001161/0.001161, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.309/1.309, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008661/0.0008661, allocations: 97.5 kB / 292.1 MB, free: 10.89 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3992/0.3992, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.0003729, allocations: 8 kB / 460 MB, free: 1.398 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3726, allocations: 61.88 MB / 0.5096 GB, free: 38.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1137/0.4863, allocations: 86.8 MB / 0.5944 GB, free: 8.273 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002051/0.4865, allocations: 67.94 kB / 0.5945 GB, free: 8.211 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004224/0.4908, allocations: 1.552 MB / 0.596 GB, free: 6.656 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4908, allocations: 0 / 0.596 GB, free: 6.656 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.4908, allocations: 0 / 0.596 GB, free: 6.656 MB / 410.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.000478/0.4913, allocations: 391 kB / 0.5964 GB, free: 6.227 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.4913, allocations: 8.031 kB / 0.5964 GB, free: 6.219 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.517e-05/0.4914, allocations: 42.55 kB / 0.5964 GB, free: 6.168 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.984e-05/0.4914, allocations: 8 kB / 0.5964 GB, free: 6.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.4916, allocations: 175 kB / 0.5966 GB, free: 5.949 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.4916, allocations: 15.94 kB / 0.5966 GB, free: 5.934 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.4916, allocations: 4 kB / 0.5966 GB, free: 5.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.4918, allocations: 85.64 kB / 0.5967 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.4918, allocations: 0 / 0.5967 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.4918, allocations: 0 / 0.5967 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.4918, allocations: 0 / 0.5967 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.492, allocations: 57.91 kB / 0.5967 GB, free: 5.785 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004647/0.4924, allocations: 324.8 kB / 0.597 GB, free: 5.418 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.4926, allocations: 94.53 kB / 0.5971 GB, free: 5.316 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.4926, allocations: 4 kB / 0.5971 GB, free: 5.312 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.4929, allocations: 103.2 kB / 0.5972 GB, free: 5.199 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.522e-06/0.4929, allocations: 0 / 0.5972 GB, free: 5.199 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004128/0.4933, allocations: 189.7 kB / 0.5974 GB, free: 5.008 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.4933, allocations: 59.41 kB / 0.5975 GB, free: 4.938 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.733e-05/0.4934, allocations: 109.3 kB / 0.5976 GB, free: 4.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.4934, allocations: 37.64 kB / 0.5976 GB, free: 4.777 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.336e-05/0.4935, allocations: 84.42 kB / 0.5977 GB, free: 4.688 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.4935, allocations: 43.53 kB / 0.5977 GB, free: 4.645 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-06/0.4935, allocations: 4 kB / 0.5977 GB, free: 4.641 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.4936, allocations: 326.8 kB / 0.598 GB, free: 4.312 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.021e-05/0.4937, allocations: 36.36 kB / 0.5981 GB, free: 4.277 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.919e-05/0.4938, allocations: 81.81 kB / 0.5982 GB, free: 4.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.577e-05/0.4939, allocations: 47.98 kB / 0.5982 GB, free: 4.133 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.494, allocations: 0 / 0.5982 GB, free: 4.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002413/0.4942, allocations: 157.4 kB / 0.5984 GB, free: 3.973 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.4942, allocations: 4 kB / 0.5984 GB, free: 3.969 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4942, allocations: 0 / 0.5984 GB, free: 3.969 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.4943, allocations: 12.09 kB / 0.5984 GB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.4944, allocations: 27.92 kB / 0.5984 GB, free: 3.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.4944, allocations: 4 kB / 0.5984 GB, free: 3.926 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6e-05/0.4945, allocations: 11.84 kB / 0.5984 GB, free: 3.914 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.4945, allocations: 8 kB / 0.5984 GB, free: 3.906 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 () * Number of clocked 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 9.581e-05/0.4946, allocations: 137.9 kB / 0.5986 GB, free: 3.766 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.629e-05/0.4946, allocations: 7.906 kB / 0.5986 GB, free: 3.758 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.913e-05/0.4946, allocations: 16.5 kB / 0.5986 GB, free: 3.738 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.4947, allocations: 4 kB / 0.5986 GB, free: 3.734 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4947, allocations: 0 / 0.5986 GB, free: 3.734 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.4947, allocations: 0 / 0.5986 GB, free: 3.734 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004849/0.4952, allocations: 443.5 kB / 0.599 GB, free: 3.246 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.4952, allocations: 3.984 kB / 0.599 GB, free: 3.242 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-05/0.4952, allocations: 8 kB / 0.599 GB, free: 3.234 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.4952, allocations: 4 kB / 0.599 GB, free: 3.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.4953, allocations: 0 / 0.599 GB, free: 3.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.4953, allocations: 7.984 kB / 0.599 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4953, allocations: 0 / 0.599 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.4956, allocations: 252.5 kB / 0.5993 GB, free: 2.961 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.699e-05/0.4956, allocations: 89 kB / 0.5994 GB, free: 2.855 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.4956, allocations: 0 / 0.5994 GB, free: 2.855 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.4958, allocations: 15.98 kB / 0.5994 GB, free: 2.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.4958, allocations: 16.36 kB / 0.5994 GB, free: 2.824 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.4958, allocations: 7.938 kB / 0.5994 GB, free: 2.816 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.624e-05/0.4959, allocations: 95.2 kB / 0.5995 GB, free: 2.723 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4959, allocations: 0 / 0.5995 GB, free: 2.723 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002299/0.4961, allocations: 24 kB / 0.5995 GB, free: 2.699 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) * Number of clocked states: 0 () * 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.0005712/0.4967, allocations: 0.7933 MB / 0.6003 GB, free: 1.883 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002283/0.4969, allocations: 107.8 kB / 0.6004 GB, free: 1.777 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.4969, allocations: 8.312 kB / 0.6004 GB, free: 1.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.4971, allocations: 59.89 kB / 0.6004 GB, free: 1.711 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001923/0.4973, allocations: 11.88 kB / 0.6005 GB, free: 1.699 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.4985, allocations: 1.401 MB / 0.6018 GB, free: 232 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.4987, allocations: 0.7004 MB / 0.6025 GB, free: 15.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.388e-05/0.4988, allocations: 12.88 kB / 0.6025 GB, free: 15.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.441e-05/0.4988, allocations: 27.44 kB / 0.6026 GB, free: 15.46 MB / 426.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4988, allocations: 0 / 0.6026 GB, free: 15.46 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01174/0.5106, allocations: 1.855 MB / 0.6044 GB, free: 13.71 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.5108, allocations: 173.4 kB / 0.6045 GB, free: 13.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.46/1.971, allocations: 0 / 0.6045 GB, free: 13.47 MB / 426.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