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.00129/0.00129, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001464/0.001464, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.471/1.471, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.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.2197/0.2197, allocations: 44.91 MB / 359.6 MB, free: 6.281 MB / 286.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.002062/0.002062, allocations: 63.91 kB / 0.4943 GB, free: 10.21 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3177, allocations: 65.46 MB / 0.5582 GB, free: 7.684 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002176/0.3199, allocations: 0.8235 MB / 0.559 GB, free: 6.879 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002167/0.3201, allocations: 43.88 kB / 0.5591 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.409e-05/0.3202, allocations: 3.938 kB / 0.5591 GB, free: 6.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.3203, allocations: 7.922 kB / 0.5591 GB, free: 6.824 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.909e-05/0.3203, allocations: 3.938 kB / 0.5591 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001415/0.3204, allocations: 23.92 kB / 0.5591 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.3206, allocations: 39.86 kB / 0.5592 GB, free: 6.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.3207, allocations: 23.62 kB / 0.5592 GB, free: 6.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.935e-05/0.3207, allocations: 11.94 kB / 0.5592 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.318e-05/0.3207, allocations: 15.92 kB / 0.5592 GB, free: 6.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.3208, allocations: 4 kB / 0.5592 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.04e-05/0.3208, allocations: 4 kB / 0.5592 GB, free: 6.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.833e-05/0.3208, allocations: 4 kB / 0.5592 GB, free: 6.699 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.228e-05/0.3208, allocations: 19.86 kB / 0.5592 GB, free: 6.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.3209, allocations: 35.83 kB / 0.5593 GB, free: 6.645 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.3209, allocations: 0 / 0.5593 GB, free: 6.645 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3209, allocations: 0 / 0.5593 GB, free: 6.645 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.3209, allocations: 0 / 0.5593 GB, free: 6.645 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.0004499/0.3214, allocations: 285.8 kB / 0.5595 GB, free: 6.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3214, allocations: 12.03 kB / 0.5596 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.3215, allocations: 4.891 kB / 0.5596 GB, free: 6.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002107/0.3217, allocations: 122.5 kB / 0.5597 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.3217, allocations: 4.375 kB / 0.5597 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.3217, allocations: 4.375 kB / 0.5597 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.3218, allocations: 46.25 kB / 0.5597 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.3218, allocations: 8.172 kB / 0.5597 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.3219, allocations: 7.938 kB / 0.5597 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.3219, allocations: 4 kB / 0.5597 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.386e-05/0.3219, allocations: 12 kB / 0.5598 GB, free: 6.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005098/0.3224, allocations: 267.7 kB / 0.56 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.019e-05/0.3225, allocations: 22.56 kB / 0.56 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.331e-05/0.3225, allocations: 16.92 kB / 0.5601 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-06/0.3225, allocations: 0 / 0.5601 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.505e-05/0.3226, allocations: 59.3 kB / 0.5601 GB, free: 5.656 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.3226, allocations: 0 / 0.5601 GB, free: 5.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001457/0.3227, allocations: 45.69 kB / 0.5602 GB, free: 5.605 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.3228, allocations: 51.41 kB / 0.5602 GB, free: 5.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.3229, allocations: 118.1 kB / 0.5603 GB, free: 5.418 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.3229, allocations: 25.7 kB / 0.5603 GB, free: 5.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/0.323, allocations: 96.08 kB / 0.5604 GB, free: 5.289 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.357e-05/0.323, allocations: 8.047 kB / 0.5604 GB, free: 5.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.261e-05/0.323, allocations: 25.59 kB / 0.5605 GB, free: 5.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3231, allocations: 326.7 kB / 0.5608 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.135e-05/0.3232, allocations: 8 kB / 0.5608 GB, free: 4.914 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.896e-05/0.3232, allocations: 17.72 kB / 0.5608 GB, free: 4.891 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.388e-05/0.3232, allocations: 25.72 kB / 0.5608 GB, free: 4.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3232, allocations: 0 / 0.5608 GB, free: 4.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.266e-05/0.3233, allocations: 53.62 kB / 0.5609 GB, free: 4.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.3233, allocations: 6.969 kB / 0.5609 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3233, allocations: 0 / 0.5609 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.3234, allocations: 4 kB / 0.5609 GB, free: 4.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.272e-05/0.3234, allocations: 8 kB / 0.5609 GB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.3234, allocations: 3.984 kB / 0.5609 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.831e-05/0.3234, allocations: 3.953 kB / 0.5609 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.3234, allocations: 7.969 kB / 0.5609 GB, free: 4.77 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.3235, allocations: 113.8 kB / 0.561 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.129e-05/0.3235, allocations: 4 kB / 0.561 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.413e-05/0.3236, allocations: 8 kB / 0.561 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3236, allocations: 3.938 kB / 0.561 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3236, allocations: 0 / 0.561 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3236, allocations: 4 kB / 0.561 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002915/0.3239, allocations: 269.6 kB / 0.5613 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3239, allocations: 0 / 0.5613 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.114e-05/0.3239, allocations: 8 kB / 0.5613 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3239, allocations: 0 / 0.5613 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.3239, allocations: 0 / 0.5613 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.3239, allocations: 3.938 kB / 0.5613 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3239, allocations: 0 / 0.5613 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.3241, allocations: 155.8 kB / 0.5615 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.298e-05/0.3241, allocations: 11.98 kB / 0.5615 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.3241, allocations: 0 / 0.5615 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.791e-05/0.3241, allocations: 8 kB / 0.5615 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.114e-05/0.3242, allocations: 4 kB / 0.5615 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.3242, allocations: 3.984 kB / 0.5615 GB, free: 4.102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.036e-05/0.3242, allocations: 91.22 kB / 0.5616 GB, free: 4.012 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3242, allocations: 0 / 0.5616 GB, free: 4.012 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002233/0.3245, allocations: 8 kB / 0.5616 GB, free: 4.004 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 9.435e-05/0.3246, allocations: 99.23 kB / 0.5617 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.718e-05/0.3247, allocations: 23.88 kB / 0.5617 GB, free: 3.875 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3247, allocations: 4.062 kB / 0.5617 GB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.035e-05/0.3247, allocations: 8 kB / 0.5617 GB, free: 3.863 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.3249, allocations: 11.98 kB / 0.5617 GB, free: 3.852 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003276/0.3253, allocations: 163.2 kB / 0.5619 GB, free: 3.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.3256, allocations: 0.6846 MB / 0.5625 GB, free: 2.949 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.468e-05/0.3256, allocations: 7.438 kB / 0.5625 GB, free: 2.941 MB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3256, allocations: 0 / 0.5625 GB, free: 2.941 MB / 398.1 MB Notification: Performance of Templates: time 0.002347/0.3279, allocations: 0.7379 MB / 0.5633 GB, free: 2.207 MB / 398.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 -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: 7.567665912909433]