Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 182.4 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007896/0.0007896, allocations: 86.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1888/0.1888, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002948, allocations: 8 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1048, allocations: 58.86 MB / 490.3 MB, free: 8.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3051/0.41, allocations: 85.73 MB / 0.5626 GB, free: 13.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.4103, allocations: 66.16 kB / 0.5626 GB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004267/0.4145, allocations: 1.485 MB / 0.5641 GB, free: 12.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.4146, allocations: 0 / 0.5641 GB, free: 12.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.4146, allocations: 1.094 kB / 0.5641 GB, free: 12.6 MB / 378.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.0005574/0.4152, allocations: 398.4 kB / 0.5645 GB, free: 12.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.4152, allocations: 8.031 kB / 0.5645 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.043e-05/0.4153, allocations: 33.88 kB / 0.5645 GB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.861e-05/0.4153, allocations: 15.3 kB / 0.5645 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.4155, allocations: 179.1 kB / 0.5647 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.4155, allocations: 4.875 kB / 0.5647 GB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.4155, allocations: 7.875 kB / 0.5647 GB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000196/0.4157, allocations: 95.62 kB / 0.5648 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.4157, allocations: 0 / 0.5648 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.4157, allocations: 0 / 0.5648 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.4158, allocations: 3.938 kB / 0.5648 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.4159, allocations: 49.47 kB / 0.5648 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004995/0.4164, allocations: 340.5 kB / 0.5652 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.4166, allocations: 82.55 kB / 0.5652 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.4166, allocations: 4 kB / 0.5652 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001952/0.4168, allocations: 101.2 kB / 0.5653 GB, free: 11.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.4168, allocations: 0 / 0.5653 GB, free: 11.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003993/0.4172, allocations: 193.2 kB / 0.5655 GB, free: 11.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.4173, allocations: 59.36 kB / 0.5656 GB, free: 11.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.674e-05/0.4174, allocations: 108.2 kB / 0.5657 GB, free: 10.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.4174, allocations: 37.06 kB / 0.5657 GB, free: 10.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.395e-05/0.4174, allocations: 87.17 kB / 0.5658 GB, free: 10.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/0.4175, allocations: 43.84 kB / 0.5658 GB, free: 10.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.942e-06/0.4175, allocations: 3.5 kB / 0.5658 GB, free: 10.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4176, allocations: 322.5 kB / 0.5662 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.921e-05/0.4177, allocations: 35.67 kB / 0.5662 GB, free: 10.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.4178, allocations: 86.47 kB / 0.5663 GB, free: 10.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.977e-05/0.4179, allocations: 47.25 kB / 0.5663 GB, free: 10.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4179, allocations: 0 / 0.5663 GB, free: 10.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002422/0.4182, allocations: 159.6 kB / 0.5665 GB, free: 10.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.4182, allocations: 4 kB / 0.5665 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4182, allocations: 3.984 kB / 0.5665 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.4183, allocations: 4 kB / 0.5665 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.4184, allocations: 24.31 kB / 0.5665 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.4184, allocations: 7.984 kB / 0.5665 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.007e-05/0.4185, allocations: 14.98 kB / 0.5665 GB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.4185, allocations: 4 kB / 0.5665 GB, free: 10.09 MB / 378.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.687e-05/0.4186, allocations: 138.7 kB / 0.5667 GB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.648e-05/0.4186, allocations: 11.84 kB / 0.5667 GB, free: 9.949 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.356e-05/0.4187, allocations: 19.36 kB / 0.5667 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.4187, allocations: 0 / 0.5667 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4187, allocations: 7.938 kB / 0.5667 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.4187, allocations: 384 / 0.5667 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00048/0.4192, allocations: 443.4 kB / 0.5671 GB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4192, allocations: 0 / 0.5671 GB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.726e-05/0.4192, allocations: 15.92 kB / 0.5671 GB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.4193, allocations: 3.938 kB / 0.5671 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.4193, allocations: 3.984 kB / 0.5671 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4193, allocations: 3.953 kB / 0.5671 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.4193, allocations: 0 / 0.5671 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002796/0.4196, allocations: 260.1 kB / 0.5674 GB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-05/0.4196, allocations: 85.02 kB / 0.5675 GB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.4196, allocations: 0 / 0.5675 GB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.4198, allocations: 11.98 kB / 0.5675 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.688e-05/0.4198, allocations: 15.38 kB / 0.5675 GB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.4198, allocations: 4 kB / 0.5675 GB, free: 9.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.219e-05/0.4199, allocations: 90.83 kB / 0.5676 GB, free: 9.004 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.433e-06/0.4199, allocations: 4 kB / 0.5676 GB, free: 9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002253/0.4201, allocations: 27.38 kB / 0.5676 GB, free: 8.977 MB / 378.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.000546/0.4207, allocations: 0.7838 MB / 0.5684 GB, free: 8.203 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002231/0.4209, allocations: 112.3 kB / 0.5685 GB, free: 8.117 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4209, allocations: 0 / 0.5685 GB, free: 8.117 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.421, allocations: 46.3 kB / 0.5685 GB, free: 8.082 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001944/0.4212, allocations: 18.77 kB / 0.5686 GB, free: 8.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.4225, allocations: 1.418 MB / 0.5699 GB, free: 6.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.4227, allocations: 0.6965 MB / 0.5706 GB, free: 5.938 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.123e-05/0.4228, allocations: 8.875 kB / 0.5706 GB, free: 5.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.366e-05/0.4228, allocations: 33.55 kB / 0.5707 GB, free: 5.906 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4229, allocations: 0 / 0.5707 GB, free: 5.906 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.012/0.4349, allocations: 1.859 MB / 0.5725 GB, free: 4.086 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/0.4351, allocations: 174.2 kB / 0.5726 GB, free: 3.836 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.458/1.893, allocations: 0 / 0.5726 GB, free: 3.836 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat