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.001651/0.001651, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.7/1.7, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009109/0.000911, allocations: 90.56 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2283/0.2283, allocations: 43.5 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.659e-05/1.661e-05, allocations: 0 / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1461, allocations: 58.86 MB / 477.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4629/0.609, allocations: 84.97 MB / 0.549 GB, free: 9.199 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001576/0.6092, allocations: 66.39 kB / 0.5491 GB, free: 9.199 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003697/0.6129, allocations: 1.463 MB / 0.5505 GB, free: 8.258 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6129, allocations: 4 kB / 0.5505 GB, free: 8.254 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.6129, allocations: 4 kB / 0.5505 GB, free: 8.25 MB / 362.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.000381/0.6133, allocations: 386.3 kB / 0.5509 GB, free: 7.836 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.6134, allocations: 8.031 kB / 0.5509 GB, free: 7.828 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.577e-05/0.6134, allocations: 11.91 kB / 0.5509 GB, free: 7.816 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.6135, allocations: 167 kB / 0.551 GB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.6136, allocations: 4 kB / 0.5511 GB, free: 7.609 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.6136, allocations: 18.67 kB / 0.5511 GB, free: 7.594 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.893e-05/0.6137, allocations: 26 kB / 0.5511 GB, free: 7.578 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.6138, allocations: 69.92 kB / 0.5512 GB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.6138, allocations: 4 kB / 0.5512 GB, free: 7.512 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.6139, allocations: 7.359 kB / 0.5512 GB, free: 7.508 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.6139, allocations: 0 / 0.5512 GB, free: 7.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004376/0.6143, allocations: 314.8 kB / 0.5515 GB, free: 7.191 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001144/0.6144, allocations: 75.12 kB / 0.5515 GB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.017e-05/0.6145, allocations: 34.3 kB / 0.5516 GB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.6145, allocations: 4 kB / 0.5516 GB, free: 7.102 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001243/0.6146, allocations: 86.75 kB / 0.5517 GB, free: 7.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.6147, allocations: 4 kB / 0.5517 GB, free: 7.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002311/0.6149, allocations: 128.4 kB / 0.5518 GB, free: 6.906 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.562e-05/0.6149, allocations: 55.03 kB / 0.5518 GB, free: 6.844 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.314e-05/0.615, allocations: 104.7 kB / 0.5519 GB, free: 6.734 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.615, allocations: 33.27 kB / 0.552 GB, free: 6.699 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.6151, allocations: 88.16 kB / 0.5521 GB, free: 6.609 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.6151, allocations: 34.31 kB / 0.5521 GB, free: 6.582 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/0.6151, allocations: 0 / 0.5521 GB, free: 6.582 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.616e-05/0.6152, allocations: 326.3 kB / 0.5524 GB, free: 6.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.538e-05/0.6152, allocations: 25.62 kB / 0.5524 GB, free: 6.242 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.356e-05/0.6153, allocations: 67.89 kB / 0.5525 GB, free: 6.172 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.491e-05/0.6154, allocations: 40.86 kB / 0.5525 GB, free: 6.145 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.6154, allocations: 4 kB / 0.5525 GB, free: 6.141 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000174/0.6156, allocations: 131.3 kB / 0.5527 GB, free: 6.027 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.6156, allocations: 4 kB / 0.5527 GB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.6156, allocations: 7.984 kB / 0.5527 GB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.6156, allocations: 0 / 0.5527 GB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.6157, allocations: 26.48 kB / 0.5527 GB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.6158, allocations: 4 kB / 0.5527 GB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.706e-05/0.6158, allocations: 12.14 kB / 0.5527 GB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.6158, allocations: 7.688 kB / 0.5527 GB, free: 5.973 MB / 362.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 7.921e-05/0.6159, allocations: 119.5 kB / 0.5528 GB, free: 5.848 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001595/0.6161, allocations: 133.2 kB / 0.553 GB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.286e-05/0.6161, allocations: 7.906 kB / 0.553 GB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.6162, allocations: 12.31 kB / 0.553 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.6162, allocations: 3.938 kB / 0.553 GB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.6162, allocations: 0 / 0.553 GB, free: 5.711 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.6162, allocations: 7.891 kB / 0.553 GB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003297/0.6165, allocations: 404.6 kB / 0.5534 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.6165, allocations: 0 / 0.5534 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.301e-05/0.6166, allocations: 8 kB / 0.5534 GB, free: 5.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.6166, allocations: 3.984 kB / 0.5534 GB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.6166, allocations: 3.938 kB / 0.5534 GB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6166, allocations: 7.891 kB / 0.5534 GB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6166, allocations: 4 kB / 0.5534 GB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002054/0.6168, allocations: 230.5 kB / 0.5536 GB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.761e-05/0.6169, allocations: 85.02 kB / 0.5537 GB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.6169, allocations: 0.875 kB / 0.5537 GB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.617, allocations: 11.98 kB / 0.5537 GB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.739e-05/0.6171, allocations: 15 kB / 0.5537 GB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.6171, allocations: 4 kB / 0.5537 GB, free: 4.941 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.806e-05/0.6171, allocations: 91.08 kB / 0.5538 GB, free: 4.855 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6171, allocations: 4 kB / 0.5538 GB, free: 4.852 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002264/0.6174, allocations: 16 kB / 0.5538 GB, free: 4.836 MB / 362.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.0003769/0.6177, allocations: 0.7622 MB / 0.5546 GB, free: 4.078 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001461/0.6179, allocations: 87.67 kB / 0.5547 GB, free: 4.016 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6179, allocations: 0 / 0.5547 GB, free: 4.016 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.469e-05/0.618, allocations: 46.44 kB / 0.5547 GB, free: 3.984 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001855/0.6182, allocations: 15.12 kB / 0.5547 GB, free: 3.973 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004077/0.6186, allocations: 151.6 kB / 0.5549 GB, free: 3.797 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.6187, allocations: 0.6963 MB / 0.5556 GB, free: 3.074 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.951e-05/0.6188, allocations: 12.86 kB / 0.5556 GB, free: 3.062 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.215e-05/0.6188, allocations: 31.2 kB / 0.5556 GB, free: 3.043 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.6188, allocations: 4 kB / 0.5556 GB, free: 3.039 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.6397, allocations: 1.57 MB / 0.5571 GB, free: 1.477 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002411/0.6401, allocations: 128.2 kB / 0.5573 GB, free: 1.281 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/2.21, allocations: 3.938 kB / 0.5573 GB, free: 1.277 MB / 362.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