Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.00128, allocations: 202.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008922/0.0008921, allocations: 87.86 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.233/0.233, allocations: 45.14 MB / 383.7 MB, free: 280 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.489e-05/1.484e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1209, allocations: 63.25 MB / 0.5044 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4334/0.5544, allocations: 87.44 MB / 0.5898 GB, free: 14.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.5547, allocations: 62.17 kB / 0.5899 GB, free: 14.76 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004973/0.5597, allocations: 1.747 MB / 0.5916 GB, free: 13.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5597, allocations: 0 / 0.5916 GB, free: 13.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.5597, allocations: 0 / 0.5916 GB, free: 13.29 MB / 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.0005082/0.5602, allocations: 374.6 kB / 0.592 GB, free: 12.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.5603, allocations: 16.03 kB / 0.592 GB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.5603, allocations: 11.84 kB / 0.592 GB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.5606, allocations: 185.4 kB / 0.5922 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.5606, allocations: 4 kB / 0.5922 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/0.5607, allocations: 7.75 kB / 0.5922 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001/0.5608, allocations: 27.81 kB / 0.5922 GB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.5609, allocations: 63.34 kB / 0.5923 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.5609, allocations: 7.938 kB / 0.5923 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.5609, allocations: 0 / 0.5923 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.5609, allocations: 0 / 0.5923 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000559/0.5615, allocations: 328.2 kB / 0.5926 GB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.358e-05/0.5616, allocations: 42.33 kB / 0.5926 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.928e-05/0.5616, allocations: 13.67 kB / 0.5926 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.5617, allocations: 4 kB / 0.5926 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001383/0.5618, allocations: 71.64 kB / 0.5927 GB, free: 12.09 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.5618, allocations: 0 / 0.5927 GB, free: 12.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001783/0.562, allocations: 68.84 kB / 0.5928 GB, free: 12.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.562, allocations: 51.41 kB / 0.5928 GB, free: 11.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.798e-05/0.5621, allocations: 112.6 kB / 0.5929 GB, free: 11.85 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.117e-05/0.5622, allocations: 29.7 kB / 0.593 GB, free: 11.81 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.589e-05/0.5622, allocations: 100.2 kB / 0.5931 GB, free: 11.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.608e-05/0.5623, allocations: 19.59 kB / 0.5931 GB, free: 11.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.5623, allocations: 3.938 kB / 0.5931 GB, free: 11.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.5624, allocations: 322.8 kB / 0.5934 GB, free: 11.37 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.208e-05/0.5625, allocations: 15.69 kB / 0.5934 GB, free: 11.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.725e-05/0.5625, allocations: 34.39 kB / 0.5934 GB, free: 11.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.515e-05/0.5626, allocations: 19.91 kB / 0.5935 GB, free: 11.31 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.5626, allocations: 4 kB / 0.5935 GB, free: 11.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001169/0.5627, allocations: 73.06 kB / 0.5935 GB, free: 11.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.5627, allocations: 4 kB / 0.5935 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.5627, allocations: 4 kB / 0.5935 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.5628, allocations: 3.953 kB / 0.5935 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.665e-05/0.5628, allocations: 11.94 kB / 0.5936 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.5628, allocations: 4.062 kB / 0.5936 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.398e-05/0.5629, allocations: 11.89 kB / 0.5936 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-06/0.5629, allocations: 4 kB / 0.5936 GB, free: 11.2 MB / 394.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 8.765e-05/0.563, allocations: 108.9 kB / 0.5937 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.814e-05/0.5631, allocations: 57.5 kB / 0.5937 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.223e-05/0.5631, allocations: 7.859 kB / 0.5937 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.618e-05/0.5632, allocations: 12.44 kB / 0.5937 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.5632, allocations: 0 / 0.5937 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.5632, allocations: 4 kB / 0.5938 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5632, allocations: 7.922 kB / 0.5938 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/0.5636, allocations: 310 kB / 0.5941 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.5636, allocations: 3.984 kB / 0.5941 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.153e-05/0.5636, allocations: 7.953 kB / 0.5941 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.5636, allocations: 0 / 0.5941 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.5637, allocations: 0.8125 kB / 0.5941 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.5637, allocations: 0 / 0.5941 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.5637, allocations: 0 / 0.5941 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000201/0.5639, allocations: 190.7 kB / 0.5942 GB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.545e-05/0.5639, allocations: 85.05 kB / 0.5943 GB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.564, allocations: 7.828 kB / 0.5943 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.131e-05/0.5641, allocations: 11.98 kB / 0.5943 GB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.5641, allocations: 7.984 kB / 0.5944 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.5641, allocations: 4 kB / 0.5944 GB, free: 10.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.345e-05/0.5642, allocations: 95.81 kB / 0.5945 GB, free: 10.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5642, allocations: 0 / 0.5945 GB, free: 10.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002233/0.5644, allocations: 16.12 kB / 0.5945 GB, free: 10.23 MB / 394.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.0004867/0.5649, allocations: 0.7132 MB / 0.5952 GB, free: 9.516 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001086/0.565, allocations: 40.02 kB / 0.5952 GB, free: 9.488 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.5651, allocations: 192 / 0.5952 GB, free: 9.488 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.459e-05/0.5651, allocations: 27.89 kB / 0.5952 GB, free: 9.465 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.5653, allocations: 19.78 kB / 0.5952 GB, free: 9.449 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006173/0.566, allocations: 179.3 kB / 0.5954 GB, free: 9.246 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.5664, allocations: 0.7002 MB / 0.5961 GB, free: 8.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.432e-05/0.5664, allocations: 7.953 kB / 0.5961 GB, free: 8.512 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/0.5665, allocations: 26.98 kB / 0.5961 GB, free: 8.5 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5665, allocations: 0 / 0.5961 GB, free: 8.5 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.5875, allocations: 1.452 MB / 0.5976 GB, free: 7.059 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.5878, allocations: 134.8 kB / 0.5977 GB, free: 6.863 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.528/2.116, allocations: 0 / 0.5977 GB, free: 6.863 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat