Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000844/0.000844, allocations: 183.9 kB / 18.09 MB, free: 3.727 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.165/1.165, allocations: 223.3 MB / 242.1 MB, free: 9.992 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.0007398/0.0007398, allocations: 91.14 kB / 293.3 MB, free: 10.56 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.2576/0.2576, allocations: 44.14 MB / 388.5 MB, free: 38.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.0003199, allocations: 12 kB / 461.1 MB, free: 1.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2418, allocations: 61.88 MB / 0.5107 GB, free: 38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09079/0.3326, allocations: 85.94 MB / 0.5946 GB, free: 9.141 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.3329, allocations: 67.94 kB / 0.5947 GB, free: 9.078 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002395/0.3353, allocations: 0.9976 MB / 0.5957 GB, free: 8.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3353, allocations: 0 / 0.5957 GB, free: 8.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.3353, allocations: 0 / 0.5957 GB, free: 8.07 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003072/0.3356, allocations: 343.4 kB / 0.596 GB, free: 7.684 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.3357, allocations: 19.97 kB / 0.596 GB, free: 7.664 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.143e-05/0.3357, allocations: 4.844 kB / 0.596 GB, free: 7.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.3359, allocations: 180.3 kB / 0.5962 GB, free: 7.445 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.334e-06/0.3359, allocations: 384 / 0.5962 GB, free: 7.445 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/0.3359, allocations: 8.375 kB / 0.5962 GB, free: 7.438 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001044/0.336, allocations: 50.47 kB / 0.5963 GB, free: 7.383 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.336, allocations: 192 / 0.5963 GB, free: 7.383 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.3361, allocations: 7.875 kB / 0.5963 GB, free: 7.375 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.3361, allocations: 0 / 0.5963 GB, free: 7.375 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.208e-05/0.3361, allocations: 19.92 kB / 0.5963 GB, free: 7.355 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004556/0.3366, allocations: 296.7 kB / 0.5966 GB, free: 7.016 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.609e-05/0.3366, allocations: 22.58 kB / 0.5966 GB, free: 6.984 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.028e-05/0.3367, allocations: 16.69 kB / 0.5966 GB, free: 6.969 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.021e-06/0.3367, allocations: 3.938 kB / 0.5966 GB, free: 6.965 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001074/0.3368, allocations: 55.41 kB / 0.5967 GB, free: 6.898 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.3368, allocations: 0 / 0.5967 GB, free: 6.898 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001306/0.3369, allocations: 49.69 kB / 0.5967 GB, free: 6.844 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.337, allocations: 51.41 kB / 0.5968 GB, free: 6.781 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.694e-05/0.3371, allocations: 117.8 kB / 0.5969 GB, free: 6.656 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.3371, allocations: 29.7 kB / 0.5969 GB, free: 6.621 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.689e-05/0.3371, allocations: 95.97 kB / 0.597 GB, free: 6.523 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.151e-05/0.3372, allocations: 7.906 kB / 0.597 GB, free: 6.516 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-06/0.3372, allocations: 4 kB / 0.597 GB, free: 6.512 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.736e-05/0.3373, allocations: 318.8 kB / 0.5973 GB, free: 6.191 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.539e-05/0.3373, allocations: 4.375 kB / 0.5973 GB, free: 6.188 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.196e-05/0.3373, allocations: 21.7 kB / 0.5973 GB, free: 6.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.641e-05/0.3374, allocations: 21.72 kB / 0.5974 GB, free: 6.133 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3374, allocations: 0 / 0.5974 GB, free: 6.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.759e-05/0.3375, allocations: 65.56 kB / 0.5974 GB, free: 6.062 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.3375, allocations: 4 kB / 0.5974 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.3375, allocations: 0 / 0.5974 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.3375, allocations: 4 kB / 0.5974 GB, free: 6.055 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.833e-05/0.3375, allocations: 0 / 0.5974 GB, free: 6.055 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3375, allocations: 7.984 kB / 0.5974 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.942e-05/0.3376, allocations: 3.906 kB / 0.5974 GB, free: 6.043 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.3376, allocations: 7.922 kB / 0.5974 GB, free: 6.035 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.477e-05/0.3377, allocations: 117.8 kB / 0.5976 GB, free: 5.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/0.3377, allocations: 8.031 kB / 0.5976 GB, free: 5.902 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.181e-05/0.3377, allocations: 3.906 kB / 0.5976 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3377, allocations: 0 / 0.5976 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3377, allocations: 0 / 0.5976 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3377, allocations: 4 kB / 0.5976 GB, free: 5.895 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002644/0.338, allocations: 298.5 kB / 0.5979 GB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.338, allocations: 0 / 0.5979 GB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.225e-05/0.3381, allocations: 4 kB / 0.5979 GB, free: 5.543 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3381, allocations: 7.938 kB / 0.5979 GB, free: 5.535 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.3381, allocations: 4 kB / 0.5979 GB, free: 5.531 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3381, allocations: 3.938 kB / 0.5979 GB, free: 5.527 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3381, allocations: 0 / 0.5979 GB, free: 5.527 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001373/0.3382, allocations: 159.9 kB / 0.598 GB, free: 5.355 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.3383, allocations: 81.02 kB / 0.5981 GB, free: 5.258 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.3383, allocations: 0 / 0.5981 GB, free: 5.258 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.498e-05/0.3384, allocations: 3.938 kB / 0.5981 GB, free: 5.254 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.472e-05/0.3384, allocations: 8.062 kB / 0.5981 GB, free: 5.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.3384, allocations: 4 kB / 0.5981 GB, free: 5.242 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.775e-05/0.3385, allocations: 91.27 kB / 0.5982 GB, free: 5.152 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3385, allocations: 0 / 0.5982 GB, free: 5.152 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002327/0.3387, allocations: 12 kB / 0.5982 GB, free: 5.141 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 9.397e-05/0.3388, allocations: 99.7 kB / 0.5983 GB, free: 5.035 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.611e-05/0.3389, allocations: 16 kB / 0.5983 GB, free: 5.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3389, allocations: 0 / 0.5983 GB, free: 5.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.712e-05/0.3389, allocations: 12.33 kB / 0.5983 GB, free: 5.008 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.3392, allocations: 15.62 kB / 0.5984 GB, free: 4.996 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002783/0.3395, allocations: 146.5 kB / 0.5985 GB, free: 4.824 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.3397, allocations: 0.6848 MB / 0.5992 GB, free: 4.113 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.262e-05/0.3397, allocations: 8.172 kB / 0.5992 GB, free: 4.105 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.561e-05/0.3398, allocations: 15.44 kB / 0.5992 GB, free: 4.09 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3398, allocations: 0 / 0.5992 GB, free: 4.09 MB / 410.7 MB Notification: Performance of Templates: time 0.002104/0.3419, allocations: 457.1 kB / 0.5996 GB, free: 3.645 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches