Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 169.5 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 177.2 MB / 204.9 MB, free: 9.051 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2178/0.2178, allocations: 34.27 MB / 295.5 MB, free: 14.6 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002853/0.002853, allocations: 67.91 kB / 443.1 MB, free: 6.738 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3223, allocations: 66.02 MB / 0.4972 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002568/0.3248, allocations: 1.625 MB / 0.4988 GB, free: 28.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008895/0.3257, allocations: 0.5609 MB / 0.4994 GB, free: 28.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.3258, allocations: 3.25 kB / 0.4994 GB, free: 28.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.326, allocations: 11.81 kB / 0.4994 GB, free: 28.35 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.569e-05/0.326, allocations: 18.02 kB / 0.4994 GB, free: 28.34 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003739/0.3264, allocations: 83.62 kB / 0.4995 GB, free: 28.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.3265, allocations: 118.2 kB / 0.4996 GB, free: 28.24 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.3267, allocations: 21.81 kB / 0.4996 GB, free: 28.23 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.685e-05/0.3267, allocations: 53.88 kB / 0.4996 GB, free: 28.2 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.957e-05/0.3268, allocations: 31.77 kB / 0.4997 GB, free: 28.19 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.3268, allocations: 10.41 kB / 0.4997 GB, free: 28.18 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.642e-05/0.3268, allocations: 9.625 kB / 0.4997 GB, free: 28.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.525e-05/0.3269, allocations: 15.47 kB / 0.4997 GB, free: 28.17 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.589e-05/0.3269, allocations: 36.78 kB / 0.4997 GB, free: 28.15 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.3271, allocations: 90.67 kB / 0.4998 GB, free: 28.11 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3271, allocations: 0 / 0.4998 GB, free: 28.11 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3271, allocations: 0 / 0.4998 GB, free: 28.11 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.383e-06/0.3271, allocations: 4 kB / 0.4998 GB, free: 28.11 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006257/0.3277, allocations: 348.2 kB / 0.5002 GB, free: 27.8 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.3277, allocations: 9.906 kB / 0.5002 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.251e-05/0.3278, allocations: 7.922 kB / 0.5002 GB, free: 27.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.328, allocations: 156.6 kB / 0.5003 GB, free: 27.64 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.328, allocations: 3.469 kB / 0.5003 GB, free: 27.64 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.3281, allocations: 11.34 kB / 0.5003 GB, free: 27.64 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000252/0.3283, allocations: 108.4 kB / 0.5005 GB, free: 27.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3283, allocations: 3.938 kB / 0.5005 GB, free: 27.58 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.3283, allocations: 0 / 0.5005 GB, free: 27.58 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.3283, allocations: 3.156 kB / 0.5005 GB, free: 27.58 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001474/0.3285, allocations: 51.47 kB / 0.5005 GB, free: 27.57 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005271/0.329, allocations: 314.8 kB / 0.5008 GB, free: 27.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.3293, allocations: 103.5 kB / 0.5009 GB, free: 27.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.992e-05/0.3294, allocations: 31.2 kB / 0.5009 GB, free: 27.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.3294, allocations: 3.375 kB / 0.5009 GB, free: 27.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.3296, allocations: 100.8 kB / 0.501 GB, free: 27.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.3296, allocations: 0 / 0.501 GB, free: 27.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004286/0.3301, allocations: 145.5 kB / 0.5012 GB, free: 27.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.3301, allocations: 55.34 kB / 0.5012 GB, free: 27.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.153e-05/0.3302, allocations: 137.5 kB / 0.5014 GB, free: 26.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.3302, allocations: 32.98 kB / 0.5014 GB, free: 26.92 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.834e-05/0.3302, allocations: 102.7 kB / 0.5015 GB, free: 26.82 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/0.3303, allocations: 19.03 kB / 0.5015 GB, free: 26.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.726e-05/0.3303, allocations: 27.23 kB / 0.5015 GB, free: 26.78 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.576e-05/0.3303, allocations: 325.1 kB / 0.5018 GB, free: 26.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3305, allocations: 36.38 kB / 0.5019 GB, free: 26.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.3306, allocations: 49.22 kB / 0.5019 GB, free: 26.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.3308, allocations: 77.75 kB / 0.502 GB, free: 26.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.3308, allocations: 0 / 0.502 GB, free: 26.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002514/0.331, allocations: 129 kB / 0.5021 GB, free: 26.33 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.331, allocations: 3.219 kB / 0.5021 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.331, allocations: 0 / 0.5021 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.331, allocations: 3.25 kB / 0.5021 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.565e-05/0.3311, allocations: 13.03 kB / 0.5021 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3311, allocations: 7.125 kB / 0.5021 GB, free: 26.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.3313, allocations: 16.56 kB / 0.5022 GB, free: 26.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.3313, allocations: 0 / 0.5022 GB, free: 26.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.042e-05/0.3313, allocations: 128.3 kB / 0.5023 GB, free: 26.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.3313, allocations: 11.12 kB / 0.5023 GB, free: 26.19 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.258e-05/0.3314, allocations: 11.69 kB / 0.5023 GB, free: 26.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3314, allocations: 3.938 kB / 0.5023 GB, free: 26.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.3314, allocations: 10.36 kB / 0.5023 GB, free: 26.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3314, allocations: 0 / 0.5023 GB, free: 26.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003823/0.3318, allocations: 325 kB / 0.5026 GB, free: 25.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3318, allocations: 3.469 kB / 0.5026 GB, free: 25.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.786e-05/0.3318, allocations: 10.34 kB / 0.5026 GB, free: 25.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3318, allocations: 6.484 kB / 0.5026 GB, free: 25.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.3319, allocations: 7.875 kB / 0.5027 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3319, allocations: 0 / 0.5027 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3319, allocations: 0 / 0.5027 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003636/0.3322, allocations: 244.2 kB / 0.5029 GB, free: 25.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.205e-05/0.3322, allocations: 7.203 kB / 0.5029 GB, free: 25.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.3322, allocations: 7.938 kB / 0.5029 GB, free: 25.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.3324, allocations: 19.47 kB / 0.5029 GB, free: 25.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.148e-05/0.3324, allocations: 14.17 kB / 0.5029 GB, free: 25.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.3324, allocations: 3.219 kB / 0.5029 GB, free: 25.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.911e-05/0.3325, allocations: 106.7 kB / 0.503 GB, free: 25.63 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3325, allocations: 0 / 0.503 GB, free: 25.63 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.3327, allocations: 16.66 kB / 0.5031 GB, free: 25.62 MB / 446.1 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 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 5.581e-05/0.3328, allocations: 99.22 kB / 0.5032 GB, free: 25.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002709/0.333, allocations: 83.89 kB / 0.5032 GB, free: 25.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.333, allocations: 4.062 kB / 0.5032 GB, free: 25.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.3332, allocations: 40.95 kB / 0.5033 GB, free: 25.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.3334, allocations: 17.41 kB / 0.5033 GB, free: 25.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008412/0.3343, allocations: 270.4 kB / 0.5035 GB, free: 25.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.482e-05/0.3343, allocations: 82.83 kB / 0.5036 GB, free: 25.26 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.958e-05/0.3344, allocations: 14.56 kB / 0.5036 GB, free: 25.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.289e-05/0.3344, allocations: 11.59 kB / 0.5037 GB, free: 25.25 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3344, allocations: 0 / 0.5037 GB, free: 25.25 MB / 446.1 MB Notification: Performance of Templates: time 0.003634/0.338, allocations: 1.237 MB / 0.5049 GB, free: 25.1 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.874852059059776]