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/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.00159/0.00159, allocations: 69.72 kB / 21.24 MB, free: 0.5547 MB / 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.001648/0.001648, allocations: 162.5 kB / 24.5 MB, free: 3.715 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.506/1.506, allocations: 177.2 MB / 204.9 MB, free: 9 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2104/0.2104, allocations: 32.8 MB / 294.1 MB, free: 20 kB / 270.1 MB " [Timeout remaining time 180] 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 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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002298, allocations: 63.91 kB / 440.6 MB, free: 9.449 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3515, allocations: 65.44 MB / 0.4941 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001966/0.3535, allocations: 0.8183 MB / 0.4949 GB, free: 30.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001683/0.3536, allocations: 47.44 kB / 0.495 GB, free: 30.83 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.987e-05/0.3537, allocations: 0 / 0.495 GB, free: 30.83 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 7.286e-05/0.3537, allocations: 7.375 kB / 0.495 GB, free: 30.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 1.367e-05/0.3538, allocations: 7.938 kB / 0.495 GB, free: 30.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.031e-05/0.3538, allocations: 21.92 kB / 0.495 GB, free: 30.8 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.3539, allocations: 36.22 kB / 0.495 GB, free: 30.79 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.917e-05/0.354, allocations: 13.91 kB / 0.4951 GB, free: 30.78 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.639e-05/0.354, allocations: 11.47 kB / 0.4951 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.432e-05/0.354, allocations: 14.34 kB / 0.4951 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.3541, allocations: 2.938 kB / 0.4951 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.923e-06/0.3541, allocations: 3.031 kB / 0.4951 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.767e-05/0.3541, allocations: 10.97 kB / 0.4951 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.459e-05/0.3541, allocations: 14.78 kB / 0.4951 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.534e-05/0.3542, allocations: 39.31 kB / 0.4952 GB, free: 30.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3542, allocations: 0 / 0.4952 GB, free: 30.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3542, allocations: 3.938 kB / 0.4952 GB, free: 30.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.3542, allocations: 3.938 kB / 0.4952 GB, free: 30.72 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003581/0.3546, allocations: 282.1 kB / 0.4954 GB, free: 30.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3546, allocations: 9.938 kB / 0.4954 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.3546, allocations: 8.109 kB / 0.4954 GB, free: 30.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.3548, allocations: 123.7 kB / 0.4956 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.3548, allocations: 3.562 kB / 0.4956 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.3548, allocations: 7.531 kB / 0.4956 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.3549, allocations: 47.28 kB / 0.4956 GB, free: 30.26 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.3549, allocations: 192 / 0.4956 GB, free: 30.26 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.3549, allocations: 7.938 kB / 0.4956 GB, free: 30.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3549, allocations: 3.406 kB / 0.4956 GB, free: 30.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.162e-05/0.355, allocations: 14.5 kB / 0.4956 GB, free: 30.24 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003792/0.3554, allocations: 229 kB / 0.4959 GB, free: 30.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.585e-05/0.3554, allocations: 25.23 kB / 0.4959 GB, free: 30 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.581e-05/0.3554, allocations: 12.02 kB / 0.4959 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-06/0.3554, allocations: 0 / 0.4959 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.377e-05/0.3555, allocations: 56.28 kB / 0.496 GB, free: 29.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.352e-06/0.3555, allocations: 3.984 kB / 0.496 GB, free: 29.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001196/0.3556, allocations: 49.98 kB / 0.496 GB, free: 29.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.876e-05/0.3557, allocations: 58.53 kB / 0.4961 GB, free: 29.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.265e-05/0.3557, allocations: 103.4 kB / 0.4962 GB, free: 29.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.3557, allocations: 28.95 kB / 0.4962 GB, free: 29.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.128e-05/0.3557, allocations: 95.27 kB / 0.4963 GB, free: 29.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.3558, allocations: 11.05 kB / 0.4963 GB, free: 29.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.3558, allocations: 12.88 kB / 0.4963 GB, free: 29.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.126e-05/0.3558, allocations: 325.3 kB / 0.4966 GB, free: 29.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.502e-05/0.3558, allocations: 7.125 kB / 0.4966 GB, free: 29.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.891e-05/0.3559, allocations: 16.91 kB / 0.4966 GB, free: 29.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.241e-05/0.3559, allocations: 26.56 kB / 0.4967 GB, free: 29.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.3559, allocations: 0 / 0.4967 GB, free: 29.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.103e-05/0.356, allocations: 57.27 kB / 0.4967 GB, free: 29.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/0.356, allocations: 3.188 kB / 0.4967 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.356, allocations: 3.219 kB / 0.4967 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.356, allocations: 0 / 0.4967 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.846e-05/0.356, allocations: 2.938 kB / 0.4967 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.356, allocations: 4.031 kB / 0.4967 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.493e-05/0.356, allocations: 7.188 kB / 0.4967 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.087e-06/0.356, allocations: 3.938 kB / 0.4967 GB, free: 29.15 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: 2 (greaterEqualThreshold.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.982e-05/0.3561, allocations: 121.7 kB / 0.4969 GB, free: 29.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.042e-05/0.3561, allocations: 10.67 kB / 0.4969 GB, free: 29.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.865e-05/0.3561, allocations: 4 kB / 0.4969 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.3561, allocations: 0 / 0.4969 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3561, allocations: 0 / 0.4969 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3561, allocations: 3.156 kB / 0.4969 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.3563, allocations: 239.1 kB / 0.4971 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3563, allocations: 3.312 kB / 0.4971 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.97e-05/0.3563, allocations: 11.88 kB / 0.4971 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3563, allocations: 3.469 kB / 0.4971 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.3563, allocations: 3.156 kB / 0.4971 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3563, allocations: 0 / 0.4971 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3563, allocations: 0 / 0.4971 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.326e-05/0.3564, allocations: 150.8 kB / 0.4973 GB, free: 28.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.514e-06/0.3564, allocations: 3.609 kB / 0.4973 GB, free: 28.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.004e-05/0.3564, allocations: 0 / 0.4973 GB, free: 28.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.689e-05/0.3565, allocations: 6.516 kB / 0.4973 GB, free: 28.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.3565, allocations: 4 kB / 0.4973 GB, free: 28.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-06/0.3565, allocations: 8 kB / 0.4973 GB, free: 28.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.595e-05/0.3566, allocations: 85.17 kB / 0.4974 GB, free: 28.53 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3566, allocations: 0 / 0.4974 GB, free: 28.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.3568, allocations: 14.19 kB / 0.4974 GB, free: 28.52 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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.239e-05/0.3568, allocations: 96.64 kB / 0.4975 GB, free: 28.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.885e-05/0.3569, allocations: 20.12 kB / 0.4975 GB, free: 28.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3569, allocations: 0 / 0.4975 GB, free: 28.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.692e-05/0.3569, allocations: 6.688 kB / 0.4975 GB, free: 28.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.3572, allocations: 13 kB / 0.4975 GB, free: 28.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002613/0.3575, allocations: 139.9 kB / 0.4976 GB, free: 28.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.412e-05/0.3575, allocations: 71.53 kB / 0.4977 GB, free: 28.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.671e-05/0.3576, allocations: 256 / 0.4977 GB, free: 28.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.084e-05/0.3576, allocations: 11.72 kB / 0.4977 GB, free: 28.21 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3576, allocations: 0 / 0.4977 GB, free: 28.21 MB / 446.1 MB Notification: Performance of Templates: time 0.002768/0.3603, allocations: 492.1 kB / 0.4982 GB, free: 28.12 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.969593264977448]