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: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000963/0.000963, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, 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.0008878/0.0008878, allocations: 97.56 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.208/0.208, allocations: 45.15 MB / 383.8 MB, free: 268 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.551e-05/1.553e-05, allocations: 0 / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4062/0.5164, allocations: 87.45 MB / 0.5898 GB, free: 15.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001516/0.5166, allocations: 54.92 kB / 0.5898 GB, free: 15.14 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004463/0.5211, allocations: 1.744 MB / 0.5915 GB, free: 13.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.5211, allocations: 0 / 0.5915 GB, free: 13.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.5211, allocations: 4 kB / 0.5915 GB, free: 13.66 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.000414/0.5215, allocations: 365.9 kB / 0.5919 GB, free: 13.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.5216, allocations: 12.03 kB / 0.5919 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.739e-05/0.5216, allocations: 7.906 kB / 0.5919 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002145/0.5218, allocations: 193 kB / 0.5921 GB, free: 13.03 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.5219, allocations: 4 kB / 0.5921 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.5219, allocations: 8 kB / 0.5921 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.82e-05/0.522, allocations: 27.19 kB / 0.5921 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.5221, allocations: 70.41 kB / 0.5922 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.5222, allocations: 4 kB / 0.5922 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.5222, allocations: 0 / 0.5922 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.5222, allocations: 0 / 0.5922 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005008/0.5227, allocations: 325.9 kB / 0.5925 GB, free: 12.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.003e-05/0.5228, allocations: 37.77 kB / 0.5925 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.612e-05/0.5228, allocations: 12.52 kB / 0.5925 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.5228, allocations: 4 kB / 0.5925 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001357/0.523, allocations: 71.45 kB / 0.5926 GB, free: 12.47 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.523, allocations: 0 / 0.5926 GB, free: 12.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001733/0.5232, allocations: 68.72 kB / 0.5927 GB, free: 12.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.5232, allocations: 55.39 kB / 0.5927 GB, free: 12.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.99e-05/0.5233, allocations: 111.5 kB / 0.5928 GB, free: 12.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.5233, allocations: 29.7 kB / 0.5929 GB, free: 12.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.393e-05/0.5234, allocations: 95.91 kB / 0.593 GB, free: 12.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.649e-05/0.5235, allocations: 23.22 kB / 0.593 GB, free: 12.08 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.5235, allocations: 224 / 0.593 GB, free: 12.08 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.5236, allocations: 322.5 kB / 0.5933 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.156e-05/0.5236, allocations: 19 kB / 0.5933 GB, free: 11.75 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.943e-05/0.5237, allocations: 32.83 kB / 0.5933 GB, free: 11.71 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.179e-05/0.5237, allocations: 11.55 kB / 0.5933 GB, free: 11.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.5237, allocations: 8.844 kB / 0.5934 GB, free: 11.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000111/0.5238, allocations: 72.64 kB / 0.5934 GB, free: 11.63 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.5239, allocations: 4 kB / 0.5934 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.5239, allocations: 4 kB / 0.5934 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.5239, allocations: 3.953 kB / 0.5934 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.265e-05/0.524, allocations: 11.94 kB / 0.5934 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.524, allocations: 0 / 0.5934 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.287e-05/0.524, allocations: 11.89 kB / 0.5935 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.5241, allocations: 8.062 kB / 0.5935 GB, free: 11.59 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.263e-05/0.5242, allocations: 111 kB / 0.5936 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.5242, allocations: 0 / 0.5936 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.294e-05/0.5242, allocations: 18.44 kB / 0.5936 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.5242, allocations: 0 / 0.5936 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5242, allocations: 3.953 kB / 0.5936 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.5242, allocations: 0 / 0.5936 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002771/0.5245, allocations: 322.7 kB / 0.5939 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.5245, allocations: 4 kB / 0.5939 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-05/0.5246, allocations: 4 kB / 0.5939 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.5246, allocations: 0 / 0.5939 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.5246, allocations: 0 / 0.5939 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.5246, allocations: 3.953 kB / 0.5939 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.5246, allocations: 0 / 0.5939 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001762/0.5248, allocations: 188.3 kB / 0.5941 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.5249, allocations: 81.14 kB / 0.5942 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.5249, allocations: 7.609 kB / 0.5942 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.501e-05/0.525, allocations: 12.05 kB / 0.5942 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.196e-05/0.525, allocations: 11.94 kB / 0.5942 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.832e-06/0.525, allocations: 4 kB / 0.5942 GB, free: 10.79 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.668e-05/0.5251, allocations: 92.25 kB / 0.5943 GB, free: 10.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.924e-06/0.5251, allocations: 0 / 0.5943 GB, free: 10.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002186/0.5253, allocations: 23.78 kB / 0.5943 GB, free: 10.68 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.0001224/0.5255, allocations: 99.23 kB / 0.5944 GB, free: 10.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.5256, allocations: 44.62 kB / 0.5945 GB, free: 10.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5256, allocations: 0 / 0.5945 GB, free: 10.54 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.055e-05/0.5256, allocations: 17.75 kB / 0.5945 GB, free: 10.53 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002103/0.5258, allocations: 11.98 kB / 0.5945 GB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004141/0.5263, allocations: 136.7 kB / 0.5946 GB, free: 10.37 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.5265, allocations: 0.7052 MB / 0.5953 GB, free: 9.641 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.269e-05/0.5266, allocations: 11.94 kB / 0.5953 GB, free: 9.629 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.303e-05/0.5266, allocations: 11.44 kB / 0.5953 GB, free: 9.621 MB / 394.7 MB Notification: Performance of SimCode: time 1.793e-06/0.5266, allocations: 0 / 0.5953 GB, free: 9.621 MB / 394.7 MB Notification: Performance of Templates: time 0.002579/0.5292, allocations: 0.7151 MB / 0.596 GB, free: 8.922 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches