Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",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.001118/0.001118, allocations: 177 kB / 17.06 MB, free: 5.094 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.33/1.33, allocations: 223.2 MB / 241 MB, free: 11.89 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.0008348/0.0008346, allocations: 88.06 kB / 292.1 MB, free: 10.91 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.3413/0.3413, allocations: 44.22 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003024, allocations: 8 kB / 460 MB, free: 1.434 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3654, allocations: 61.9 MB / 0.5096 GB, free: 37.87 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1224/0.4878, allocations: 87.12 MB / 0.5947 GB, free: 7.973 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.4881, allocations: 71.94 kB / 0.5948 GB, free: 7.906 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004465/0.4926, allocations: 1.702 MB / 0.5964 GB, free: 6.203 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4926, allocations: 0 / 0.5964 GB, free: 6.203 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.4926, allocations: 11.94 kB / 0.5965 GB, free: 6.191 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004501/0.4931, allocations: 379 kB / 0.5968 GB, free: 5.773 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.4932, allocations: 12.03 kB / 0.5968 GB, free: 5.762 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.846e-05/0.4932, allocations: 46.55 kB / 0.5969 GB, free: 5.707 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.275e-05/0.4932, allocations: 11.91 kB / 0.5969 GB, free: 5.695 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/0.4934, allocations: 175.1 kB / 0.5971 GB, free: 5.484 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.4935, allocations: 7.984 kB / 0.5971 GB, free: 5.477 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.4935, allocations: 11.95 kB / 0.5971 GB, free: 5.465 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000141/0.4936, allocations: 79.66 kB / 0.5971 GB, free: 5.383 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.4937, allocations: 0 / 0.5971 GB, free: 5.383 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.4937, allocations: 3.984 kB / 0.5972 GB, free: 5.379 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.4937, allocations: 4 kB / 0.5972 GB, free: 5.375 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.281e-05/0.4938, allocations: 39.98 kB / 0.5972 GB, free: 5.336 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.4943, allocations: 352.5 kB / 0.5975 GB, free: 4.941 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.4944, allocations: 50.56 kB / 0.5976 GB, free: 4.883 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.4944, allocations: 128 / 0.5976 GB, free: 4.883 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.4946, allocations: 71.41 kB / 0.5976 GB, free: 4.801 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.4946, allocations: 0 / 0.5976 GB, free: 4.801 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002075/0.4948, allocations: 85.58 kB / 0.5977 GB, free: 4.711 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.4949, allocations: 55.36 kB / 0.5978 GB, free: 4.645 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.495, allocations: 130.3 kB / 0.5979 GB, free: 4.508 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.495, allocations: 33.7 kB / 0.5979 GB, free: 4.469 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.296e-05/0.4951, allocations: 96.12 kB / 0.598 GB, free: 4.371 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.4951, allocations: 15.89 kB / 0.598 GB, free: 4.355 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/0.4951, allocations: 4 kB / 0.598 GB, free: 4.352 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4952, allocations: 322.8 kB / 0.5984 GB, free: 4.027 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.824e-05/0.4953, allocations: 19.94 kB / 0.5984 GB, free: 4.008 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.804e-05/0.4953, allocations: 38.5 kB / 0.5984 GB, free: 3.961 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.089e-05/0.4954, allocations: 20.31 kB / 0.5984 GB, free: 3.941 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4954, allocations: 0 / 0.5984 GB, free: 3.941 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001251/0.4955, allocations: 97.41 kB / 0.5985 GB, free: 3.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.4955, allocations: 5.406 kB / 0.5985 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.4955, allocations: 3.984 kB / 0.5985 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.4956, allocations: 4 kB / 0.5985 GB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.253e-05/0.4956, allocations: 8 kB / 0.5985 GB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.4956, allocations: 7.938 kB / 0.5986 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.468e-05/0.4957, allocations: 12.02 kB / 0.5986 GB, free: 3.801 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.4957, allocations: 7.984 kB / 0.5986 GB, free: 3.793 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 8.82e-05/0.4958, allocations: 114.4 kB / 0.5987 GB, free: 3.672 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.4958, allocations: 7.906 kB / 0.5987 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.795e-05/0.4959, allocations: 16.72 kB / 0.5987 GB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.4959, allocations: 3.984 kB / 0.5987 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4959, allocations: 0 / 0.5987 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4959, allocations: 0 / 0.5987 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003217/0.4962, allocations: 350.5 kB / 0.599 GB, free: 3.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.4962, allocations: 0 / 0.599 GB, free: 3.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.05e-05/0.4963, allocations: 7.984 kB / 0.599 GB, free: 3.242 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.4963, allocations: 0 / 0.599 GB, free: 3.242 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.4963, allocations: 4 kB / 0.5991 GB, free: 3.238 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4963, allocations: 0 / 0.5991 GB, free: 3.238 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4963, allocations: 3.953 kB / 0.5991 GB, free: 3.234 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/0.4965, allocations: 191.4 kB / 0.5992 GB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.259e-05/0.4966, allocations: 84.95 kB / 0.5993 GB, free: 2.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.951e-05/0.4966, allocations: 4.031 kB / 0.5993 GB, free: 2.926 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.165e-05/0.4967, allocations: 7.984 kB / 0.5993 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.4968, allocations: 11.98 kB / 0.5993 GB, free: 2.906 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.054e-06/0.4968, allocations: 3.953 kB / 0.5993 GB, free: 2.902 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.204e-05/0.4969, allocations: 105 kB / 0.5994 GB, free: 2.801 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4969, allocations: 0 / 0.5994 GB, free: 2.801 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002318/0.4971, allocations: 12 kB / 0.5995 GB, free: 2.789 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004814/0.4976, allocations: 0.7358 MB / 0.6002 GB, free: 2.023 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.4977, allocations: 39.92 kB / 0.6002 GB, free: 1.984 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.4977, allocations: 192 / 0.6002 GB, free: 1.984 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.167e-05/0.4978, allocations: 27.94 kB / 0.6002 GB, free: 1.957 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.498, allocations: 25.39 kB / 0.6003 GB, free: 1.934 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.4991, allocations: 0.92 MB / 0.6012 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.4994, allocations: 0.7082 MB / 0.6019 GB, free: 224 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.66e-05/0.4994, allocations: 8.422 kB / 0.6019 GB, free: 216 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.36e-05/0.4995, allocations: 27.42 kB / 0.6019 GB, free: 188 kB / 410.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4995, allocations: 0 / 0.6019 GB, free: 188 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01285/0.5123, allocations: 1.91 MB / 0.6038 GB, free: 14.39 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.5126, allocations: 170.8 kB / 0.6039 GB, free: 14.15 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.435/1.948, allocations: 0 / 0.6039 GB, free: 14.15 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat