Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001312/0.001312, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001465/0.001465, allocations: 211.4 kB / 24.48 MB, free: 3.977 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.489/1.489, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.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.2266/0.2266, allocations: 46.97 MB / 361.6 MB, free: 4.035 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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 67.89 kB / 0.4973 GB, free: 7.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3228, allocations: 66.04 MB / 0.5618 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002236/0.3251, allocations: 0.8046 MB / 0.5626 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001747/0.3253, allocations: 47.83 kB / 0.5626 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.04e-05/0.3253, allocations: 0 / 0.5626 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.555e-05/0.3254, allocations: 11.92 kB / 0.5626 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.628e-05/0.3254, allocations: 7.938 kB / 0.5627 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.12e-05/0.3255, allocations: 15.98 kB / 0.5627 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.026e-05/0.3256, allocations: 39.86 kB / 0.5627 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.73e-05/0.3257, allocations: 18.59 kB / 0.5627 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.723e-05/0.3257, allocations: 19.92 kB / 0.5627 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.982e-05/0.3257, allocations: 11.92 kB / 0.5628 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.3257, allocations: 4 kB / 0.5628 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.458e-06/0.3257, allocations: 8 kB / 0.5628 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.462e-05/0.3257, allocations: 4 kB / 0.5628 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.597e-05/0.3258, allocations: 15.86 kB / 0.5628 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 8.375e-05/0.3259, allocations: 31.89 kB / 0.5628 GB, free: 3.137 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3259, allocations: 0 / 0.5628 GB, free: 3.137 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3259, allocations: 0 / 0.5628 GB, free: 3.137 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.3259, allocations: 0 / 0.5628 GB, free: 3.137 MB / 398.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.000433/0.3263, allocations: 286.8 kB / 0.5631 GB, free: 2.824 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.887e-05/0.3263, allocations: 11.97 kB / 0.5631 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.3264, allocations: 12.89 kB / 0.5631 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.3266, allocations: 114.5 kB / 0.5632 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.3266, allocations: 8.375 kB / 0.5632 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.3266, allocations: 12.3 kB / 0.5632 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.3267, allocations: 50.23 kB / 0.5633 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.3267, allocations: 4.188 kB / 0.5633 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.3267, allocations: 3.938 kB / 0.5633 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3267, allocations: 0 / 0.5633 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.362e-05/0.3268, allocations: 15.94 kB / 0.5633 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004267/0.3272, allocations: 228.4 kB / 0.5635 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.46e-05/0.3273, allocations: 26.58 kB / 0.5636 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.199e-05/0.3273, allocations: 12.91 kB / 0.5636 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.3273, allocations: 3.938 kB / 0.5636 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.308e-05/0.3274, allocations: 51.41 kB / 0.5636 GB, free: 2.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3274, allocations: 0 / 0.5636 GB, free: 2.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001323/0.3275, allocations: 45.66 kB / 0.5637 GB, free: 2.145 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.57e-05/0.3276, allocations: 55.39 kB / 0.5637 GB, free: 2.078 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.3277, allocations: 105.9 kB / 0.5638 GB, free: 1.965 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.3277, allocations: 29.69 kB / 0.5638 GB, free: 1.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.3278, allocations: 99.97 kB / 0.5639 GB, free: 1.828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.316e-05/0.3278, allocations: 7.953 kB / 0.564 GB, free: 1.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-05/0.3279, allocations: 21.72 kB / 0.564 GB, free: 1.793 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.328, allocations: 318.8 kB / 0.5643 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.149e-05/0.3281, allocations: 8 kB / 0.5643 GB, free: 1.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.564e-05/0.3281, allocations: 13.72 kB / 0.5643 GB, free: 1.445 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.69e-05/0.3281, allocations: 29.7 kB / 0.5643 GB, free: 1.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3281, allocations: 0 / 0.5643 GB, free: 1.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.726e-05/0.3282, allocations: 49.64 kB / 0.5644 GB, free: 1.355 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3282, allocations: 7.984 kB / 0.5644 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3282, allocations: 11.97 kB / 0.5644 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.3283, allocations: 0 / 0.5644 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.792e-05/0.3283, allocations: 4 kB / 0.5644 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3283, allocations: 0 / 0.5644 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.382e-05/0.3283, allocations: 0 / 0.5644 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.3283, allocations: 4 kB / 0.5644 GB, free: 1.328 MB / 398.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 8.67e-05/0.3284, allocations: 113.8 kB / 0.5645 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.3284, allocations: 11.89 kB / 0.5645 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.8e-05/0.3284, allocations: 11.98 kB / 0.5645 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.3285, allocations: 336 / 0.5645 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.3285, allocations: 3.938 kB / 0.5645 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3285, allocations: 8 kB / 0.5645 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.3287, allocations: 238.2 kB / 0.5648 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3287, allocations: 4 kB / 0.5648 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.368e-05/0.3288, allocations: 7.984 kB / 0.5648 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.3288, allocations: 0 / 0.5648 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.3288, allocations: 0 / 0.5648 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.3288, allocations: 0 / 0.5648 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3288, allocations: 3.938 kB / 0.5648 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001451/0.3289, allocations: 155.4 kB / 0.5649 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-06/0.3289, allocations: 4.031 kB / 0.5649 GB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.07e-05/0.3289, allocations: 4.062 kB / 0.5649 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.161e-05/0.329, allocations: 0 / 0.5649 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.014e-05/0.329, allocations: 7.984 kB / 0.5649 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.329, allocations: 3.938 kB / 0.565 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.125e-05/0.3291, allocations: 83.28 kB / 0.565 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3291, allocations: 4 kB / 0.565 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002086/0.3293, allocations: 7.938 kB / 0.565 GB, free: 0.5977 MB / 398.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 8.518e-05/0.3294, allocations: 95.23 kB / 0.5651 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.691e-05/0.3294, allocations: 15.94 kB / 0.5651 GB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.3294, allocations: 64 / 0.5651 GB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.924e-05/0.3295, allocations: 19.98 kB / 0.5652 GB, free: 472 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.3297, allocations: 6.812 kB / 0.5652 GB, free: 468 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002867/0.33, allocations: 133.6 kB / 0.5653 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.395e-05/0.3301, allocations: 67.34 kB / 0.5654 GB, free: 220 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.6e-05/0.3301, allocations: 0 / 0.5654 GB, free: 220 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.942e-05/0.3301, allocations: 11.44 kB / 0.5654 GB, free: 208 kB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3301, allocations: 0 / 0.5654 GB, free: 208 kB / 398.1 MB Notification: Performance of Templates: time 0.002626/0.3327, allocations: 0.5072 MB / 0.5659 GB, free: 15.7 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.908358056010911]