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.001416/0.001416, allocations: 180.5 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.486/1.486, allocations: 221.4 MB / 236 MB, free: 2.945 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.0008851/0.0008854, allocations: 85.41 kB / 287 MB, free: 232 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.1966/0.1966, allocations: 44.16 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.311e-05/3.315e-05, allocations: 224 / 451.9 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1541, allocations: 61.93 MB / 0.5018 GB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4438/0.598, allocations: 87.05 MB / 0.5868 GB, free: 2.176 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.5982, allocations: 68.09 kB / 0.5869 GB, free: 2.113 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004889/0.6032, allocations: 1.687 MB / 0.5885 GB, free: 448 kB / 394.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.6032, allocations: 0 / 0.5885 GB, free: 448 kB / 394.7 MB Notification: Performance of Transformations before backend: time 1.68e-05/0.6032, allocations: 4 kB / 0.5885 GB, free: 444 kB / 394.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.0004767/0.6037, allocations: 371.2 kB / 0.5889 GB, free: 28 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.6038, allocations: 8.031 kB / 0.5889 GB, free: 20 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.246e-05/0.6039, allocations: 42.55 kB / 0.5889 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.132e-05/0.6039, allocations: 7.906 kB / 0.5889 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001979/0.6041, allocations: 186.8 kB / 0.5891 GB, free: 15.74 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.6041, allocations: 8 kB / 0.5891 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.6042, allocations: 15.94 kB / 0.5891 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001447/0.6043, allocations: 65.69 kB / 0.5892 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.6043, allocations: 6.953 kB / 0.5892 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.6044, allocations: 8 kB / 0.5892 GB, free: 15.63 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.6044, allocations: 4 kB / 0.5892 GB, free: 15.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.6045, allocations: 33.34 kB / 0.5892 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005632/0.6051, allocations: 364.5 kB / 0.5896 GB, free: 15.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.565e-05/0.6052, allocations: 46.61 kB / 0.5896 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.894e-05/0.6053, allocations: 17.02 kB / 0.5897 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.6053, allocations: 0 / 0.5897 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001324/0.6054, allocations: 63.41 kB / 0.5897 GB, free: 15.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.6054, allocations: 4 kB / 0.5897 GB, free: 15.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001794/0.6056, allocations: 69.53 kB / 0.5898 GB, free: 14.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.6057, allocations: 63.34 kB / 0.5898 GB, free: 14.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.6058, allocations: 134.2 kB / 0.59 GB, free: 14.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.6058, allocations: 29.7 kB / 0.59 GB, free: 14.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.6059, allocations: 92.14 kB / 0.5901 GB, free: 14.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.6059, allocations: 23.64 kB / 0.5901 GB, free: 14.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.568e-06/0.6059, allocations: 0 / 0.5901 GB, free: 14.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.606, allocations: 322.8 kB / 0.5904 GB, free: 14.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.49e-05/0.6061, allocations: 16 kB / 0.5904 GB, free: 14.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.128e-05/0.6061, allocations: 38.56 kB / 0.5905 GB, free: 14.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.932e-05/0.6062, allocations: 16.56 kB / 0.5905 GB, free: 14.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.6062, allocations: 0 / 0.5905 GB, free: 14.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001303/0.6063, allocations: 89.58 kB / 0.5906 GB, free: 14.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.6063, allocations: 13.31 kB / 0.5906 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.6064, allocations: 0 / 0.5906 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.6064, allocations: 0 / 0.5906 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.831e-05/0.6065, allocations: 19.81 kB / 0.5906 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.6065, allocations: 0 / 0.5906 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.896e-05/0.6065, allocations: 16.03 kB / 0.5906 GB, free: 14.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.6066, allocations: 4 kB / 0.5906 GB, free: 14.05 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 () * 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 7.938e-05/0.6066, allocations: 116.9 kB / 0.5907 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.6067, allocations: 11.91 kB / 0.5907 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.507e-05/0.6067, allocations: 12.62 kB / 0.5908 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.6067, allocations: 0 / 0.5908 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.6067, allocations: 0 / 0.5908 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.6067, allocations: 0 / 0.5908 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000328/0.6071, allocations: 342.4 kB / 0.5911 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.6071, allocations: 0 / 0.5911 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.497e-05/0.6071, allocations: 11.94 kB / 0.5911 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.6071, allocations: 0 / 0.5911 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.6072, allocations: 3.984 kB / 0.5911 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.6072, allocations: 8 kB / 0.5911 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6072, allocations: 3.953 kB / 0.5911 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002127/0.6074, allocations: 183.4 kB / 0.5913 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.6075, allocations: 81.02 kB / 0.5914 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.194e-05/0.6075, allocations: 7.984 kB / 0.5914 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-05/0.6076, allocations: 8.031 kB / 0.5914 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.6076, allocations: 16 kB / 0.5914 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.6077, allocations: 0 / 0.5914 GB, free: 13.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.863e-05/0.6077, allocations: 104.7 kB / 0.5915 GB, free: 13.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6077, allocations: 0 / 0.5915 GB, free: 13.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002249/0.608, allocations: 20.19 kB / 0.5915 GB, free: 13.04 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) * 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.0005725/0.6086, allocations: 0.7163 MB / 0.5922 GB, free: 12.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000133/0.6087, allocations: 59.92 kB / 0.5923 GB, free: 12.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.6087, allocations: 0 / 0.5923 GB, free: 12.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.806e-05/0.6088, allocations: 16 kB / 0.5923 GB, free: 12.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.609, allocations: 19.97 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.0006114/0.6097, allocations: 201.8 kB / 0.5925 GB, free: 11.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.61, allocations: 0.7004 MB / 0.5932 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.284e-05/0.6101, allocations: 8.438 kB / 0.5932 GB, free: 11.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.725e-05/0.6101, allocations: 27.42 kB / 0.5932 GB, free: 11.21 MB / 410.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6101, allocations: 0 / 0.5932 GB, free: 11.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01356/0.6237, allocations: 1.89 MB / 0.5951 GB, free: 9.43 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/0.624, allocations: 153 kB / 0.5952 GB, free: 9.199 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/2.253, allocations: 4 kB / 0.5952 GB, free: 9.195 MB / 410.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