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: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001107, allocations: 179.6 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.288/1.288, allocations: 221.4 MB / 236 MB, free: 2.98 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.0008406/0.0008409, allocations: 87.7 kB / 287 MB, free: 264 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.1824/0.1824, allocations: 44.16 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.684e-05/2.686e-05, allocations: 4.219 kB / 451.8 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 61.91 MB / 0.5017 GB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.38/0.5112, allocations: 87.05 MB / 0.5867 GB, free: 2.301 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.5114, allocations: 63.95 kB / 0.5868 GB, free: 2.238 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00455/0.5159, allocations: 1.689 MB / 0.5884 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.516, allocations: 0 / 0.5884 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.516, allocations: 4 kB / 0.5884 GB, free: 0.5547 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.0004186/0.5164, allocations: 370.4 kB / 0.5888 GB, free: 152 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.5165, allocations: 12.03 kB / 0.5888 GB, free: 140 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/0.5165, allocations: 7.906 kB / 0.5888 GB, free: 132 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.5167, allocations: 186.9 kB / 0.589 GB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.5168, allocations: 8 kB / 0.589 GB, free: 15.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.5168, allocations: 8 kB / 0.589 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.517, allocations: 73.64 kB / 0.5891 GB, free: 15.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.517, allocations: 3.938 kB / 0.5891 GB, free: 15.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.517, allocations: 10.94 kB / 0.5891 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.517, allocations: 0 / 0.5891 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.867e-05/0.5171, allocations: 35.94 kB / 0.5891 GB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005344/0.5176, allocations: 356.5 kB / 0.5894 GB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.343e-05/0.5177, allocations: 50.52 kB / 0.5895 GB, free: 15.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.516e-05/0.5178, allocations: 17.02 kB / 0.5895 GB, free: 15.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.5178, allocations: 0 / 0.5895 GB, free: 15.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/0.5179, allocations: 75.42 kB / 0.5896 GB, free: 15.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.5179, allocations: 0 / 0.5896 GB, free: 15.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001727/0.5181, allocations: 69.53 kB / 0.5896 GB, free: 15.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.5182, allocations: 59.36 kB / 0.5897 GB, free: 15.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.5183, allocations: 131.3 kB / 0.5898 GB, free: 14.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.5183, allocations: 29.7 kB / 0.5899 GB, free: 14.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.216e-05/0.5184, allocations: 96.12 kB / 0.5899 GB, free: 14.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.5184, allocations: 19.7 kB / 0.59 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-06/0.5184, allocations: 0 / 0.59 GB, free: 14.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.5185, allocations: 326.8 kB / 0.5903 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.42e-05/0.5186, allocations: 16 kB / 0.5903 GB, free: 14.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.437e-05/0.5186, allocations: 30.58 kB / 0.5903 GB, free: 14.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.103e-05/0.5187, allocations: 23.92 kB / 0.5903 GB, free: 14.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5187, allocations: 0 / 0.5903 GB, free: 14.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001295/0.5188, allocations: 85.56 kB / 0.5904 GB, free: 14.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.5188, allocations: 8 kB / 0.5904 GB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.5188, allocations: 0 / 0.5904 GB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.5189, allocations: 0 / 0.5904 GB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.821e-05/0.5189, allocations: 8 kB / 0.5904 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.519, allocations: 4.453 kB / 0.5904 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.1e-05/0.519, allocations: 24.02 kB / 0.5905 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.5191, allocations: 4 kB / 0.5905 GB, free: 14.23 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 6.215e-05/0.5191, allocations: 105 kB / 0.5906 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.918e-05/0.5191, allocations: 11.94 kB / 0.5906 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.5192, allocations: 12.62 kB / 0.5906 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.5192, allocations: 7.922 kB / 0.5906 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.5192, allocations: 0 / 0.5906 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.5192, allocations: 0 / 0.5906 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002908/0.5195, allocations: 342.9 kB / 0.5909 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5195, allocations: 0 / 0.5909 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.011e-05/0.5196, allocations: 7.938 kB / 0.5909 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.5196, allocations: 0 / 0.5909 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.5196, allocations: 8 kB / 0.5909 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.5196, allocations: 11.94 kB / 0.591 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5196, allocations: 8.016 kB / 0.591 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001954/0.5198, allocations: 187.5 kB / 0.5911 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.372e-05/0.5199, allocations: 81.02 kB / 0.5912 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.5199, allocations: 4 kB / 0.5912 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.827e-05/0.52, allocations: 11.98 kB / 0.5912 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.5201, allocations: 12.05 kB / 0.5912 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-06/0.5201, allocations: 3.953 kB / 0.5913 GB, free: 13.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.591e-05/0.5201, allocations: 105.5 kB / 0.5914 GB, free: 13.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5202, allocations: 0 / 0.5914 GB, free: 13.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002135/0.5204, allocations: 20 kB / 0.5914 GB, free: 13.21 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.0001216/0.5205, allocations: 99.17 kB / 0.5915 GB, free: 13.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.5206, allocations: 43.98 kB / 0.5915 GB, free: 13.06 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.5206, allocations: 4.125 kB / 0.5915 GB, free: 13.06 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.579e-05/0.5207, allocations: 23.94 kB / 0.5915 GB, free: 13.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.5209, allocations: 15.98 kB / 0.5915 GB, free: 13.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004254/0.5213, allocations: 152.1 kB / 0.5917 GB, free: 12.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.5216, allocations: 0.7043 MB / 0.5924 GB, free: 12.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.64e-05/0.5217, allocations: 8.422 kB / 0.5924 GB, free: 12.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.597e-05/0.5217, allocations: 11.44 kB / 0.5924 GB, free: 12.1 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5217, allocations: 0 / 0.5924 GB, free: 12.1 MB / 410.7 MB Notification: Performance of Templates: time 0.002831/0.5245, allocations: 0.812 MB / 0.5932 GB, free: 11.3 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches